2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2016-11-07 21:21:07 +00:00
|
|
|
/*
|
2018-08-25 15:40:22 +00:00
|
|
|
* Author: RedBery
|
|
|
|
* Handles a unit leaving cardiac arrest (calls for a status update).
|
|
|
|
* Clears countdown timer variables.
|
2016-11-07 21:21:07 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: The Unit <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
2019-03-30 16:07:54 +00:00
|
|
|
* Example:
|
|
|
|
* [player] call ace_medical_statemachine_fnc_leftStateCardiacArrest
|
|
|
|
*
|
2016-11-07 21:21:07 +00:00
|
|
|
* Public: No
|
|
|
|
*/
|
2016-12-06 16:26:11 +00:00
|
|
|
|
2016-11-07 21:21:07 +00:00
|
|
|
params ["_unit"];
|
2019-06-28 00:01:20 +00:00
|
|
|
TRACE_1("leftStateCardiacArrest",_unit);
|
2016-11-07 21:21:07 +00:00
|
|
|
|
2019-06-28 00:01:20 +00:00
|
|
|
_unit setVariable [QGVAR(cardiacArrestTimeLeft), nil];
|
|
|
|
_unit setVariable [QGVAR(cardiacArrestTimeLastUpdate), nil];
|
2018-08-25 15:40:22 +00:00
|
|
|
|
2019-10-12 14:47:57 +00:00
|
|
|
[_unit, false] call EFUNC(medical_status,setCardiacArrestState);
|