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
Ambient Life In Civilian Environment (ALICE) is system for populating towns with civilian units and simulating their common life.
Initialization
Paths
Editor:
Units (F1) > Game Logic > Ambient Civilians
Data:
ca\modules\alice
Startup
Place ALICE manager on map. No additional synchronizing needed.
Optional parameters
Set variables to BIS_alice_mainscope with desired values
Example: this setvariable [“townlist”,[bis_loc_acityc_mogilevka,[position this,3000],trigger1]];
Default value: Whole island.
Example: BIS_alice_mainscope setvariable [“spawnDistance”,800];
Default value: 1000
Example: BIS_alice_mainscope setvariable [“vehicleRarity”,[“Citizen1”,10,“Worker2”,0.8]];
Default value: []
Example: BIS_alice_mainscope setvariable [“civilianCount”,“round (%1 / 10)”];
Default value (and recommended): “round (2 * (sqrt %1))”
Example: BIS_alice_mainscope setvariable [“civilianActions”,[“BIS”,“CSLA”]];
Default value: [“BIS”]
Example: BIS_alice_mainscope setvariable [“respectModifyCoef”,0.2];
Default value: 0.7
Example: BIS_alice_mainscope setvariable [“threatDecay”,0.05];
Default value: 0.033
Set variables to town logic with desired values
Example: BIS_loc_acityc_kozlovka setvariable [“ALICE_forcePopulation”,true];
Default value: false
Example: BIS_loc_acityc_kozlovka setvariable [“ALICE_populationCoef”,1];
Default value: around 0.6
Example: [bis_loc_acityc_kozlovka,“ALICE_civilianinit”,[{_this addweapon “Mk_48”}]] call bis_fnc_variablespaceadd;
(use function BIS_variablespaceadd to prevent replacing currently existing codes)
Default value: none
Stored variables
Variables stored in town logics
Functions
BIS_ALICE_fnc_civilianSet
Description: Sets basic ALICE values for civilian unit. Since then, unit will start to behave according to ALICE behavior pattern.
Params:
Returned value: true