12-05-2014, 07:48 PM
ok cant get it working. shame on me! put the code at the end of init.sqf and changed the trigger name:
[] spawn {
  while {true} do {
    sleep 5;
    if (<condition to find out if the other tasks are finished>) then {
      _list = ["end", true] call FHQ_UnitsInTrigger;
      if (
        {_x in _list} count playableUnits == {alive _x} count playableUnits
      ) then {
        // Set the extraction task to true
        sleep 15;
        ["End1", "BIS_fnc_endMission, true] call BIS_fnc_MP;
      ];
    };
  };
};
called the trigger "end", setting on bluefor and also tryed anybody. but the trigger will not fire. is there anything i forgot?
[] spawn {
  while {true} do {
    sleep 5;
    if (<condition to find out if the other tasks are finished>) then {
      _list = ["end", true] call FHQ_UnitsInTrigger;
      if (
        {_x in _list} count playableUnits == {alive _x} count playableUnits
      ) then {
        // Set the extraction task to true
        sleep 15;
        ["End1", "BIS_fnc_endMission, true] call BIS_fnc_MP;
      ];
    };
  };
};
called the trigger "end", setting on bluefor and also tryed anybody. but the trigger will not fire. is there anything i forgot?