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

Advice on Respawn issue and more groups

Recommended Posts

OK I am spawning some AI then once the Group is all dead they respawn again , now my issue is i would like to have 3-4 Groups spawn in and do the same, would I have to make 3-4 scripts or is there a way to have this in 1 script ?

SpawnEnemies = true; // start spawning 


//////Create 1 group
while {SpawnEnemies} do {
_spos= [getmarkerpos "base1",random 360,[300,700],false,2] call SHK_pos;
_Grp2 = [_spos, EAST, (configfile >> "CfgGroups" >> "East" >> "OPF_F" >> "Infantry" >> "OIA_InfTeam")] call BIS_fnc_spawnGroup;
      [(units _Grp2) select 0, "Base1","track","nowait","showmarker","noslow"] execVM "scripts\ups.sqf";  
waitUntil {{alive _x} count (units _Grp2) == 0};       
};

//////Create 2 group

?????????????




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  

×