User Tools

Site Tools


arma2:terrain:ambient_modules

Ambient Modules for custom terrain

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: 2012-07-31 11:18 by snakeman