ACE3/TO_MERGE/agm/Respawn/functions/fn_handleRespawn.sqf

26 lines
432 B
Plaintext

/*
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
if (AGM_Respawn_SavePreDeathGear) then {
[_respawnedUnit, AGM_Respawn_unitGear] call AGM_Respawn_fnc_restoreGear;
};