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 revisionPrevious revision
Next revision
Previous revision
arma2:editor_modules:acm [2009/06/03 22:43] – added tips. snakemanarma2:editor_modules:acm [2024/08/01 20:53] (current) – links added. snakeman
Line 1: Line 1:
-====== ACM ======+====== ArmA 2 ACM ====== 
 + 
 +[[https://www.pmctactical.org/forum/viewforum.php?f=50|ArmA 2 Forum]], [[:arma2|ArmA 2 Home]], [[arma2:config|ArmA 2 Config]], [[arma2:file_formats|ArmA 2 File Formats]], [[arma2:missions|ArmA 2 Missions]], [[arma2:modeling|ArmA 2 3D Modeling]], [[arma2:scripting|ArmA 2 Scripting]], [[arma2:terrain|ArmA 2 Terrain]], [[arma2:texturing|ArmA 2 Texturing]], [[arma2:tools|ArmA 2 Tools]]
  
 **ACM** - **A**mbient **C**ombat **M**odule **ACM** - **A**mbient **C**ombat **M**odule
Line 54: Line 56:
 waitUntil {myFirstACM getVariable "initDone"}; waitUntil {myFirstACM getVariable "initDone"};
 </code> </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>
 +
arma2/editor_modules/acm.1244069001.txt.gz · Last modified: 2009/06/03 22:43 (external edit)