2018-07-30 09:22:14 +00:00
|
|
|
#include "script_component.hpp"
|
2016-11-07 21:21:07 +00:00
|
|
|
/*
|
|
|
|
* Author: BaerMitUmlaut
|
2016-11-09 18:01:55 +00:00
|
|
|
* Checks if the cardiac arrest timer ran out.
|
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_conditionCardiacArrestTimer
|
|
|
|
*
|
2016-11-07 21:21:07 +00:00
|
|
|
* Public: No
|
|
|
|
*/
|
2018-08-02 14:02:10 +00:00
|
|
|
|
2016-11-07 21:21:07 +00:00
|
|
|
params ["_unit"];
|
|
|
|
|
2019-06-28 00:01:20 +00:00
|
|
|
(_unit getVariable [QGVAR(cardiacArrestTimeLeft), -1]) <= 0
|