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
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
params ["_unit"];
|
|
|
|
|
|
|
|
private _startTime = _unit getVariable [QGVAR(cardiacArrestStart), CBA_missionTime];
|
2016-11-15 13:52:09 +00:00
|
|
|
private _lifeTime = _unit getVariable [QGVAR(cardiacArrestTime), GVAR(cardiacArrestTime)];
|
2016-11-07 21:21:07 +00:00
|
|
|
|
2018-04-18 22:25:44 +00:00
|
|
|
(CBA_missionTime - _startTime) > _lifeTime
|