Jump to content
Sign in to follow this  
shiron236

ACM Quick Question

Recommended Posts

What can Ambient Combat Module be synched to so that it works? SOM? Leader?

And how do I determine the output of units and faction?

Share this post


Link to post
Share on other sites

Here's a quote from the wiki:

When synchronizing to a group with multiple units it does not matter which unit you synchronize to. Aesthetically it is recommend to sychronize to the group's leader.

AND:

When all units in the group die, the ACM will clean up and terminate.

About your second question: Do you mean you want to customize the ACM? If so, here's how you do it:

BIS has created some predefined functions that you can use to customize the module. What you have to do is call them, for example via you init.sqf. Basically, what you have to do is to copy and paste the stuff bellow into your init.sqf:

First you need to wait for the module to initialize. To do so use the script bellow (assuming you've named your ACM as myACM):

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

This basically checks to see if the variable "initDone" exists in inbetween the variables that are associated with your ACM. "initDone" will exist when initiation is done (I think).

Now, the customization:

To define the factions that you want to appear:

[[[i]An array of the factions that you want to have[/i]], [i]youre ACM's name[/i]] call BIS_ACM_setFactionsFunc;

for example: [i][[GUE, USMC, CDF,RU], myACM] call BIS_ACM_setFactionsFunc;
[/i]

To set the skill range:

[[i]min skill, max skill, youre module's name[/i]] [i]call BIS_ACM_setSkillFunc;[/i]

for example
[i][0.2, 0.9,myACM] call BIS_ACM_setSkillFunc;[/i]

Note that the minimum possible skill is 0, whilst the max is 1.

To set the intensity (how many troops spawn, how quickly they respawn and etc.)

[[i]Intensity[/i], [i]youre module's name[/i]] call BIS_ACM_setIntensityFunc;

for example:
[i][0.5, myACM] call BIS_ACM_setIntensityFunc;[/i]

Note that the intensity, like the skill range, can be between 0 and 1

To set the spawning distance:

[[i]Minimum spawning distance[/i], [i]Max spawning distance[/i], [i]youre module's name[/i]] call BIS_ACM_setSpawnDistanceFunc;

for example
[i][350, 700, myACM] call BIS_ACM_setSpawnDistanceFunc;[/i]

The distances are in meters (of course). Also note that this is only for gorund units. I don't know how to change the settings for air units.

Also I'm a bit confused by how you are supposed to define the gorup types. However, for further reading you can look at the following wiki pages (which are actually quite good):

http://community.bistudio.com/wiki/Ambient_Combat_Manager

http://community.bistudio.com/wiki/Ambient_Combat_Manager_-_Functions

The link above shows you all the parameters you can use, including group range.

http://community.bistudio.com/wiki/Ambient_Combat_Manager_-_Group_types

This one gives you the groups types that you can use for ACM.

Hope it helps.

Cheers

Edited by kyfohatl

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  

×