ACE3/addons/medical_statemachine/functions/fnc_conditionExecutionDeath.sqf
Rutger "RedBery" Meijering 5fbaf426a8 Fix various bugs (#6523)
* Fix medical menu not reopening regardless of setting
* Ensure no heartrate or bloodpressure on death
* Fix status variables not being reset on respawn
* Fix JIP resetting status variables for all units
* Fix heart rate adjustment overflow and
2018-08-14 21:34:35 +01:00

18 lines
311 B
Plaintext

#include "script_component.hpp"
/*
* Author: BaerMitUmlaut
* Condition for an execution caused death.
*
* Arguments:
* 0: The Unit <OBJECT>
*
* Return Value:
* None
*
* Public: No
*/
params ["_unit"];
(GVAR(fatalInjuryCondition) < 2) && {!(_unit getVariable [QEGVAR(medical,deathBlocked), false])}