User Tools

Site Tools


arma2:terrain:ambient_modules

ArmA 2 Ambient Modules For Custom Terrain

ArmA 2 Forum, ArmA 2 Home, ArmA 2 Config, ArmA 2 File Formats, ArmA 2 Missions, ArmA 2 3D Modeling, ArmA 2 Scripting, ArmA 2 Terrain, ArmA 2 Texturing, ArmA 2 Tools

Class names is used to add ambient modules like ALICE and Ambient Civilian Vehicles for terrains.

if you want to add Ambient Civilians and Ambient Vehicles modules to your custom user made terrain, you need to add these lines to your class names:

class Names
{
	class MyCity
	{
		name = "My Nice City";
		position[] = {9845.5293, 24297.6719, 0};
		type = "NameCity";
		radiusA = 100;
		radiusB = 100;
		angle = 0;
	};
 
	class ACityC_MyCity
	{
		name = "";
		position[] = {9845.5293, 24297.6719, 0};
		type = "CityCenter";
		neighbors[] = { "ACityC_WarmCity", "ACityC_ColdCity", "ACityC_CoolCity" };
		demography[] = { "CIV", 1.0, "CIV_RU", 0.0 };
		radiusA = 100;
		radiusB = 100;
		angle = 0;
	};

class MyCity is the name of our real city in the terrain.

class ACityC_MyCity is the name of this “CityCenter” thing which makes the modules work. The “type” needs to be “CityCenter”, its unknown if the class name has to be prefixed “ACityC_” but it doesn't hurt.

The neighbors[] array is classes of those nearest cities (CityCenter) to this current one. We don't know what specifies “nearest” city, is it the logical path using road to a nearest city, or just nearest by distance or is there distance limit to this city, we don't know.

The demography[] array is the factions used to create characters there. The values of 1.0 or 0.0 most likely mean probability of presence (we don't know at the moment).

Custom Buildings

Ambient Civilian Modules do not work unless you have buildings memory points setup properly.

Engine Memory Point
ArmA2 AIDoor0
Operation Arrowhead AIspawnpos0

Check if bis buildings the digits start actually start from 1 and not 0.

arma2/terrain/ambient_modules.txt · Last modified: 2024/08/01 22:48 by snakeman

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

All PMC web site download services are temporarily suspended until web site yearly fees have been recovered, want to download addons/mods? Then Support PMC.

If you are grateful for all the work PMC has done in the past 25 years, use Support PMC page.