Jump to content
Sign in to follow this  
Trajan

Ambient Combat Module Help

Recommended Posts

I believe this has been asked many times, but I cannot for the life of me find the thread with it in it.

I have tried a number of times to have two Ambient Combat Module in one mission sync'd to one person, you can sync it to the person but for some reason nothing spawns.

waitUntil {!isNil {BIS_ACM getVariable "initDone"}};
waitUntil {BIS_ACM getVariable "initDone"};

sleep 1;

[1.0, BIS_ACM] call BIS_ACM_setIntensityFunc;

[bIS_ACM, 1, 500] call BIS_ACM_setSpawnDistanceFunc;

[["RU"], BIS_ACM] call BIS_ACM_setFactionsFunc;

[0.3, 0.7, BIS_ACM] call BIS_ACM_setSkillFunc;

[0.8, 0.9, BIS_ACM] call BIS_ACM_setAmmoFunc;

["ground_patrol", 1, BIS_ACM] call BIS_ACM_setTypeChanceFunc;

["air_patrol", 0, BIS_ACM] call BIS_ACM_setTypeChanceFunc;

[bIS_ACM, ["RU_InfSquad", "RU_InfSection_AT", "RUS_ReconTeam", "RU_MotInfSection_Recon" , "RU_MotInfSection_Patrol" , "RU_InfSection"]] call BIS_ACM_addGroupClassesFunc;

waitUntil {!isNil {BIS_ACM getVariable "initDone"}};
waitUntil {BIS_ACM2 getVariable "initDone"};

sleep 1;

[1.0, BIS_ACM2] call BIS_ACM_setIntensityFunc;

[bIS_ACM2, 1, 500] call BIS_ACM_setSpawnDistanceFunc;

[["RU"], BIS_ACM2] call BIS_ACM_setFactionsFunc;

[0.3, 0.7, BIS_ACM2] call BIS_ACM_setSkillFunc;

[0.8, 0.9, BIS_ACM2] call BIS_ACM_setAmmoFunc;

["ground_patrol", 1, BIS_ACM2] call BIS_ACM_setTypeChanceFunc;

["air_patrol", 0, BIS_ACM2] call BIS_ACM_setTypeChanceFunc;

[bIS_ACM2, ["RU_InfSquad", "RU_InfSection_AT", "RUS_ReconTeam", "RU_MotInfSection_Recon" , "RU_MotInfSection_Patrol" , "RU_InfSection"]] call BIS_ACM_addGroupClassesFunc;

This is the code I have been using, the module works with one in the mission. Any tips? I am still quite new to the editor and scripting. I am hoping this is possible if not, is there anyway I can spawn units in with a trigger instead of placing them down straight away. Want to save server resources etc.

Lastly just want to thank everyone on these forums all of the Info here has made it so easy for me to learn how to use the editor. Cheers.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×