OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: nominesine on 23 Jul 2009, 19:21:57

Title: Questions regarding the Ambient Combat Manager
Post by: nominesine on 23 Jul 2009, 19:21:57
I've placed my ACM (nomin_acm1) on the map, synched it with a playable group and given it the following command in ininit.sqf:

[0, nomin_acm1] call BIS_ACM_setIntensityFunc;

Hence no unit will spawn around my group until I raise the value 0. I only want the action to start when the players group enters a certain trigger area. Thus I feed my ACM the following line of code when the player enter the trigger:

[1, nomin_acm1] call BIS_ACM_setIntensityFunc;

That should work, right? And now some questions.

1) Can I execute the code [1, nomin_acm1] call BIS_ACM_setIntensityFunc; directly from the triggers activation field? I cannot see any reason why not, so...

2) What happens if a player Joins in Progress after the change is made. Will this init-launch revert the ACM to it's zero setting again?

3) Is it possible to make all changes of the ACM values from a script that is only running on the server in a MP game? Or does the ACM values also need to be changed on all clients in a network game.