ACE3/addons/field_rations/functions/fnc_handleRespawn.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

26 lines
519 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];