Jump to content
Sign in to follow this  
kalmisto

ACM spawns wrong insurgents, could use some help

Recommended Posts

Hi. I'm building a mission to Takistan, planning to make original Arma II-style mission with multiple tasks which player can do in any order he/she wishes. Problem is with ACM. I'm using ARMA OA/BAF.

When I place ACM to mission and synchronize wih player it will spawn Chernarussian insugents instead of Takistanis. I tried to fix it with init.sqf:

[slick1] execVM "scripts\heloGoTo\heloGoTo_init.sqf";
player setVariable ["NORRN_taxiHeli", slick1, true];

//NORRN_aerialTaxiRespawnOff = false;
NORRN_noAerialTaxiAtStart = true;

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

sleep 10;

[] spawn {
waitUntil {!(isnil "BIS_fnc_init")};
[1, BIS_ACM] call BIS_ACM_setIntensityFunc;
[bIS_ACM, 100, 1500] call BIS_ACM_setSpawnDistanceFunc;
[0, 0.3, BIS_ACM] call BIS_ACM_setSkillFunc; 
[0.2, 0.5, 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, ["TK_INS_Group", "TK_INS_Patrol", "TK_INS_AATeam", "TK_INS_ATTeam", "TK_INS_Technicals", "TK_INS_MotorizedGroup", "TK_INS_MotorizedPatrolBTR40"]] call BIS_ACM_addGroupClassesFunc; 
[["INS"], BIS_ACM] call BIS_ACM_setFactionsFunc;

};

ACM-module is named "BIS-ACM". Airtaxi script works just fine, but ACM-configuration doesn't. As a matter of fact it wont spawn anything. My goal is to spawn Takistani insurgents with no air patrols, and US patrols. Any help would be very much appreciated.

Share this post


Link to post
Share on other sites

Check your last line. BIS_ACM_setFactionsFunc:

ACM Factions

Sorry, missed the second part of your question. You need to enter into the function calls your ACM name, so either change the name of your ACM module to BIS_ACM, or change the array parameters to BIS-ACM...

See the example here:

Example ACM

Edited by panther42

Share this post


Link to post
Share on other sites

Thanks for your reply, Panther. Problem seemed to be with faction names, followed example too precisely. Thanks for pointing that out. Module name was right, that was just a typo in my post. Now that line is like this;

[bIS_ACM, ["TK_INS_Group", "TK_INS_Patrol", "TK_INS_AATeam", "TK_INS_ATTeam", "US_RifleSquad", "US_MotorizedSection", "US_MechanizedReconSection"]] call BIS_ACM_addGroupClassesFunc; 
[["BIS_TK_INS", "BIS_US"], BIS_ACM] call BIS_ACM_setFactionsFunc;

Idea is to spawn Takistani insurgents with foot patrols, and few US patrols. However when I tested the mission first enemy group was Takistani "regular" soldiers with BMP-3. Any idea how that is possible and how to fix it?

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  

×