ACE3/addons/respawn/functions/fnc_handleRespawn.sqf

26 lines
410 B
Plaintext
Raw Normal View History

2015-01-12 09:07:03 +00:00
/*
Name: AGM_Respawn_fnc_handleRespawn
Author(s):
bux578
Description:
Handles the XEH Respawn event
Parameters:
0: OBJECT - Respawned Unit
1: ?
Returns:
VOID
*/
private ["_respawnedUnit"];
_respawnedUnit = _this select 0;
// Restores the gear when the player respawns
2015-01-12 09:49:21 +00:00
if (GVAR(SavePreDeathGear)) then {
[_respawnedUnit, GVAR(unitGear)] call FUNC(restoreGear);
2015-01-12 09:07:03 +00:00
};