How to pause single module instances

  1. 8 years ago

    http://alivemod.com/forum/1142-putting-opcom-to-bed-on-empty-server

    http://alivemod.com/wiki/index.php/Script_Snippets#Pausing_Modules

    Doing like the above stops all the OPCOM modules in my mission. I would need to stop only one OPCOM instance, but not the others. Is there a way?

    Thanks,
    alef

  2. Not sure will find out though

  3. [_OPCOM, "pause", true/false] call ALiVE_fnc_OPCOM;

    whereas _OPCOM is an entry in OPCOM_instances array

    Basically you need to get the correct OPCOM from the array (like the EAST OPCOM) if you want to pause only one.

  4. _faction = "OPF_F";
    {
    	if (_faction in [_x,"factions"] call ALiVE_fnc_hashGet) then {
    		//-- Freeze opcom of faction "OPF_F"
    		[_x, "pause", true] call ALiVE_fnc_OPCOM;
    	};
    } foreach OPCOM_instances;
    _faction = "OPF_F";
    {
    	if (_faction in [_x,"factions"] call ALiVE_fnc_hashGet) then {
    		//-- unFreeze opcom of faction "OPF_F"
    		[_x, "pause", false] call ALiVE_fnc_OPCOM;
    	};
    } foreach OPCOM_instances;
  5. Thanks, but it doesn't work. Looking into why, I've found in my RPT this:

    Error in expression <_FSM",-1] call ALiVE_fnc_HashGet) > -1} && {!isNil {([_logic,"OPCOM_FSM",-1] cal>
      Error position: <&& {!isNil {([_logic,"OPCOM_FSM",-1] cal>
      Error Generic error in expression
    File x\alive\addons\mil_opcom\fnc_OPCOM.sqf, line 1352
    ALiVE Pausing state of ALiVE_ALiVE_mil_OPCOM instance set to true!

    ... and line 1352 belongs to the "pause" case.

  6. Thanks for the report I've added a ticket for it

  7. For info: I've followed the instructions Halting OPCOM activity at http://alivemod.com/wiki/index.php/Military_AI_Commander#Editor_Notes and it seems to work.

  8. 7 years ago

    hi guys ! sorry to revive an old thread, but i wish to stop an opcom (just a specific one) when a trigger met its condition.

    can someone please explain me how do it in detail? because i tried wiki,tried sync trigger to opcom, but doesnt work.

    thanks!

  9. Yeah, I made a post several days back indicating that autopause appears to be broken. AI will keep doing their thing even with an empty server.

 

or Sign Up to reply!