Results 1 to 3 of 3

Thread: ACM Module Config question

  1. #1

    ACM Module Config question

    I didn't want to open up a new thread just for a question about the Ambient Combat Module, but the other one was getting pretty long.

    I want to just have the ACM spawn Russian Infantry. I've been able to get the ACM to spawn default ground patrols with the following code in the init module, however it spawns armor as well.

    Code:
    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
    [["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. 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", 0, BIS_ACM] call BIS_ACM_setTypeChanceFunc;
    I assume that I will have to use the following functions to get that to happen
    but I'm not sure what the "Array of configs and / or Strings" means. I don't know where to get the CfgGroups or Strings from.

    Code:
    //You can pass both actual CfgGroups Config entries or class name Strings.
    [<ACM reference | Object>, <types | Array of Configs and / or Strings>] call BIS_ACM_addGroupClassesFunc;
    
    //Passing an empty types Array will completely disable the custom database and switch back to the default.
    [<ACM reference | Object>, <types | Array of Configs and / or Strings>] call BIS_ACM_removeGroupClassesFunc;
    Can anyone show how I might just spawn infantry?

  2. #2
    I would also like to know the answer to this, been trying to get the ACM to spawn specific groups for a few days now. Cant figure it out

  3. #3
    //Passing an empty types Array will completely disable the custom database and switch back to the default. (list of allowed groups, taken from cfggroups)
    [BIS_ACM, ["RU_InfSquad"]] call BIS_ACM_addGroupClassesFunc;


    Will spawn only russian infantry squads look up the allowed groups to add more just add it between the Ammo and type of patrol commands seemed to do the trick for me
    Last edited by MagicDerek; Aug 14 2009 at 06:39.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •