Printable Version of Topic

Click here to view this topic in its original format

Armed Assault Info Forums _ Mission Editing & Scripting _ Ambient combat

Posted by: TacticalyMalici0us Oct 4 2010, 18:07

Hi....
Just bought OA over the weekend and was just wondering if the ACM works the same way as it does in A2?
I tried using an "init" file from A2 in an OA mission for the ACM but didnt notice any combat happening.
Yes, I waited atleast 10 minutes as where in A2 with the same ACM init it only takes about 2 minutes to start.

I found an init code on the BI-WIKI and tried that one too but to no avail.

any help is greatly appreciated!

Posted by: TacticalyMalici0us Oct 5 2010, 15:05

QUOTE(TacticalyMalici0us @ Oct 4 2010, 10:07) *
Hi....
Just bought OA over the weekend and was just wondering if the ACM works the same way as it does in A2?
I tried using an "init" file from A2 in an OA mission for the ACM but didnt notice any combat happening.
Yes, I waited atleast 10 minutes as where in A2 with the same ACM init it only takes about 2 minutes to start.

I found an init code on the BI-WIKI and tried that one too but to no avail.

any help is greatly appreciated!



Got it to work...finally.

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, 400, 800] call BIS_ACM_setSpawnDistanceFunc;

//factions to be spawned
[["BIS_TK"], BIS_ACM] call BIS_ACM_setFactionsFunc;

//Skill range for spawned units
[0, 1, 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. With 0 meaning no chance of appearing, and 1 meaning 100% chance. -1 removes patrol type completely.
["ground_patrol", 1, BIS_ACM] call BIS_ACM_setTypeChanceFunc;

["air_patrol", -1, BIS_ACM] call BIS_ACM_setTypeChanceFunc;

the one on the wiki page doesnt seem to work right.
if I knew what I was doing then id probably know why, but alas I have NO idea what I'm doing lol.
but I got this one to work and it works great for anyone who wants to use the ACM.
Anywhoz....peace wink.gif

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)