PMC websites shut down September 13th 2025 unless yearly web hosting fees are paid. Please Support PMC to help keep these websites online.

Enjoyed or found this pages content useful, please Support PMC to help me keep this web page online beyond september 13th 2025 when yearly web hosting fees are due.

User Tools

Site Tools


arma2:terrain:ambient_modules

This is an old revision of the document!


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).

arma2/terrain/ambient_modules.1312315948.txt.gz · Last modified: 2011/08/02 20:12 by snakeman