ACE3/addons/medical/functions/fnc_conditionCardiacArrestTimer.sqf
2016-11-09 19:01:55 +01:00

19 lines
373 B
Plaintext

/*
* Author: BaerMitUmlaut
* Checks if the cardiac arrest timer ran out.
*
* Arguments:
* 0: The Unit <OBJECT>
*
* Return Value:
* None
*
* Public: No
*/
#include "script_component.hpp"
params ["_unit"];
private _startTime = _unit getVariable [QGVAR(cardiacArrestStart), CBA_missionTime];
(CBA_missionTime - _startTime) > (GVAR(maximumCardiacArrestTime) * 60)