mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
26 lines
516 B
Plaintext
26 lines
516 B
Plaintext
|
#include "script_component.hpp"
|
||
|
/*
|
||
|
* Author: mharis001, Glowbal, PabstMirror
|
||
|
* Handles the respawning of a unit by resetting necessary variables.
|
||
|
*
|
||
|
* Arguments:
|
||
|
* 0: Unit <OBJECT>
|
||
|
* 1: Corpse <OBJECT>
|
||
|
*
|
||
|
* Return Value:
|
||
|
* None
|
||
|
*
|
||
|
* Example:
|
||
|
* [newUnit, oldUnit] call ace_field_rations_fnc_handleRespawn
|
||
|
*
|
||
|
* Public: No
|
||
|
*/
|
||
|
|
||
|
params ["_unit", "_corpse"];
|
||
|
TRACE_2("Handle Respawn",_unit,_corpse);
|
||
|
|
||
|
if !(local _unit) exitWith {};
|
||
|
|
||
|
_unit setVariable [QXGVAR(thirst), 0];
|
||
|
_unit setVariable [QXGVAR(hunger), 0];
|