Epoch/Sources/epoch_code/compile/functions/EPOCH_fnc_playerDeathDetonate.sqf
Andrew Gregory e552d22df4 Player Death Options and Antagonist Updates
Changelog to follow.
2016-04-25 13:38:16 +01:00

36 lines
883 B
Plaintext

/*
Author: Andrew Gregory - EpochMod.com
Contributors:
Description:
Detonate player body.
Licence:
Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike
Github:
https://github.com/EpochModTeam/Epoch/tree/master/Sources/epoch_code/compile/functions/EPOCH_fnc_playerDeathDetonate.sqf
Example:
[] call EPOCH_fnc_playerDeathDetonate;
Parameter(s):
Returns:
BOOM
*/
params ["_player"];
openmap [false,false];
closeDialog 2;
[_player, Epoch_personalToken] remoteExec ["EPOCH_server_deadPlayerDetonate",2];
deleteVehicle player;
player setVariable ["doneBoom", true];
[] spawn{
while {!alive player} do {
//Handle clean up
if(player getVariable["doneBoom",false])exitWith{player setVariable ["doneBoom",nil]; uiSleep 5; (findDisplay 46) closeDisplay 0;};
uiSleep 0.1;
};
};