Jump to content
Murix

Subtracting more than 1 ticket on death?

Recommended Posts

I'm doing some sector control missions, and I wanted to know is there a way to subtract more than 1 ticket on a player death?

Share this post


Link to post
Share on other sites

Use the function BIS_fnc_respawnTickets from a killed eventHandler, either MissionEventHandler from server or EventHandler on clients machine. e.g

Spoiler

//initServer.sqf

addMissionEventHandler[ "EntityKilled", {
	params[ "_killed", "_killer", "_instigator" ];
	
	if ( isPlayer _killed ) then {
		//-2 tickets, 1 from BIS respawn ticket system and 1 below
		[ side _killed, -1 ] call BIS_fnc_respawnTickets;
	};
}];

 

 

  • Like 1

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

×