Jump to content
Sign in to follow this  
1para{god-father}

Spawn in another Group once all Dead ?

Recommended Posts

I am spawning in a group , but how can I spawn in another group once this one is all dead , and keep going untill a condition is meet ?

_grpINF = [_position, EAST, ["TK_INS_Bonesetter_EP1", "TK_INS_Soldier_2_EP1", "TK_INS_Bonesetter_EP1", "TK_INS_Soldier_2_EP1", "TK_INS_Soldier_4_EP1", "TK_INS_Soldier_AT_EP1"],[],[],[],[],[],180] call BIS_fnc_spawnGroup;

Share this post


Link to post
Share on other sites

Counting the alive state of the units in the group might be a good idea.

Something like this?

SPAWNING_GROUPS = true;

while {SPAWNING_GROUPS} do 
{
_grpINF = [_position, EAST, ["TK_INS_Bonesetter_EP1", "TK_INS_Soldier_2_EP1", "TK_INS_Bonesetter_EP1", "TK_INS_Soldier_2_EP1", "TK_INS_Soldier_4_EP1", "TK_INS_Soldier_AT_EP1"],[],[],[],[],[],180] call BIS_fnc_spawnGroup;
waitUntil {sleep 5; ({alive _x} count units _grpINF) == 0};
};

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  

×