01-09-2016, 07:44 PM
(01-09-2016, 04:10 PM)Lightspeed link Wrote:New Update:
Damn - now I just increased number of units to 12 and all with 'FHQ_playerGroup = group this;' in the init lines of the units. As soon as the units hit the extract marker, the chopper spawns but before it can pick up the units it says mission complete.
Are they all in the same group ? Or different groups ?
Note that you are not bound to even extract groups or anything. The script expects an array as the first parameter, "units FHQ_playerGroup" is just an example, you can also write [p1, p2, p3, p4] or "units group1 + units group2" etc.
The script spawns the helo, and then waits for all units to be in that helo, i.e. for the given units, it waits until vehicle _x == spawned helo is true, then it dusts off
This is the appropriate part of the script:
Code:
_cnt = {alive _x} count _units;
while {_cnt != ({_x in (_spawnVec select 0)} count _units)} do {
  {
    waitUntil {(vehicle _x) == _spawnVec select 0};
  } forEach _units;
};Â
If in doubt, post your mission here and I can take a look