Jump to content
Sign in to follow this  
ZZEZ

Excluding unit from respawn?

Recommended Posts

I searched but no luck.

My mission has base respawn with a 'tickets' system, I want 2 units named seal1/seal2 to be excluded from respawn and ticket loss IE once they die they are dead for good and are moved to the spectator arena[marker named end1].

Any ideas?heres the start of the ticket system in the init:

//Written by beta

//Creatin TICKETS value for ticket system:
if (isNil "TICKETS") then {TICKETS = 10;};

//RESPAWN & GEAR SCRIPTS
[] execVM "clearGear.sqf";


b_deadPeopleBLU = createGroup WEST;
[] spawn
{
sleep 0.25;

	if (TICKETS < 1) then
	{
			[player] joinSilent b_deadPeopleBLU;
			player setpos [getMarkerPos "end1" select 0, getMarkerPos "end1" select 1, 0];
			removeallweapons player;
			removeallitems player;
			sleep 1.5;
			_this call ace_fnc_startSpectator;
	};    

};



sleep 3;
player addEventHandler ["RESPAWN",
{
[] execVM "playerDeath.sqf";
}];



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  

×