2015-01-12 09:07:03 +00:00
|
|
|
/*
|
2015-01-12 10:24:58 +00:00
|
|
|
Name: ACE_Respawn_fnc_handleRespawn
|
2015-01-12 09:07:03 +00:00
|
|
|
|
|
|
|
Author(s):
|
|
|
|
bux578
|
|
|
|
|
|
|
|
Description:
|
|
|
|
Handles the XEH Respawn event
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
0: OBJECT - Respawned Unit
|
|
|
|
1: ?
|
|
|
|
|
|
|
|
Returns:
|
|
|
|
VOID
|
|
|
|
*/
|
|
|
|
|
2015-01-12 10:24:58 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-01-12 09:07:03 +00:00
|
|
|
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 {
|
2015-01-13 14:28:03 +00:00
|
|
|
[_respawnedUnit, GVAR(unitGear)] call FUNC(restoreGear);
|
2015-01-12 09:07:03 +00:00
|
|
|
};
|