2016-11-07 21:21:07 +00:00
|
|
|
/*
|
|
|
|
* Author: BaerMitUmlaut
|
|
|
|
* Handles a unit entering cardiac arrest.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: The Unit <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
2016-12-06 16:26:11 +00:00
|
|
|
|
2016-11-07 21:21:07 +00:00
|
|
|
params ["_unit"];
|
|
|
|
|
2016-12-06 16:26:11 +00:00
|
|
|
_unit setVariable [QGVAR(inCardiacArrest), false, true];
|
2016-11-07 21:21:07 +00:00
|
|
|
_unit setVariable [QGVAR(cardiacArrestStart), nil];
|
2016-12-06 16:26:11 +00:00
|
|
|
_unit setVariable [QGVAR(heartRate), 40, true];
|
|
|
|
_unit setVariable [QGVAR(lastTimeUpdated), CBA_missionTime];
|