User Tools

Site Tools


arma2:editor_modules:acm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
arma2:editor_modules:acm [2009-06-03 22:43]
snakeman added tips.
arma2:editor_modules:acm [2009-06-04 18:26] (current)
Line 53: Line 53:
 waitUntil {!isNil {myFirstACM getVariable "​initDone"​}};​ waitUntil {!isNil {myFirstACM getVariable "​initDone"​}};​
 waitUntil {myFirstACM getVariable "​initDone"​};​ waitUntil {myFirstACM getVariable "​initDone"​};​
 +</​code>​
 +
 +
 +====== Example ======
 +
 +Use this example, put it on the mission'​s init.sqf file:
 +<code cpp>
 +waitUntil {!isNil {BIS_ACM getVariable "​initDone"​}};​
 +waitUntil {BIS_ACM getVariable "​initDone"​};​
 +
 +//Sets frequency and number of patrols (0-1). BIS_ACM is module name
 +[1, BIS_ACM] call BIS_ACM_setIntensityFunc;  ​
 +
 +//min max spawn distance
 +[BIS_ACM, 300, 600] call BIS_ACM_setSpawnDistanceFunc;​
 +
 +//factions to be spawned
 +[["​USMC",​ "​RU"​],​ BIS_ACM] call BIS_ACM_setFactionsFunc;​
 +
 +//Skill range for spawned units
 +[0, 0.6, BIS_ACM] call BIS_ACM_setSkillFunc;​
 +
 +//Amount of ammo spawned units possess
 +[0.2, 0.5, BIS_ACM] call BIS_ACM_setAmmoFunc;​
 +
 +//Type of patrol. 1- present, 0- absent
 +["​ground_patrol",​ 1, BIS_ACM] call BIS_ACM_setTypeChanceFunc;​
 +
 +["​air_patrol",​ 0, BIS_ACM] call BIS_ACM_setTypeChanceFunc;​
 </​code>​ </​code>​
arma2/editor_modules/acm.1244069001.txt.gz ยท Last modified: 2009-06-03 22:43 (external edit)