2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2016-11-08 18:37:56 +00:00
|
|
|
/*
|
|
|
|
* Author: BaerMitUmlaut
|
2019-09-10 04:30:56 +00:00
|
|
|
* Condition for an execution caused death (fatal injury received in cardiac arrest).
|
2016-11-08 18:37:56 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
2019-09-10 04:30:56 +00:00
|
|
|
* 0: Unit <OBJECT>
|
2016-11-08 18:37:56 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
2019-03-30 16:07:54 +00:00
|
|
|
* Example:
|
|
|
|
* [player] call ace_medical_statemachine_fnc_conditionExecutionDeath
|
|
|
|
*
|
2016-11-08 18:37:56 +00:00
|
|
|
* Public: No
|
|
|
|
*/
|
2018-08-02 14:02:10 +00:00
|
|
|
|
2016-11-08 18:37:56 +00:00
|
|
|
params ["_unit"];
|
|
|
|
|
2019-09-13 02:50:50 +00:00
|
|
|
(if (isPlayer _unit) then {
|
|
|
|
GVAR(fatalInjuriesPlayer) != FATAL_INJURIES_NEVER
|
|
|
|
} else {
|
|
|
|
GVAR(fatalInjuriesAI) != FATAL_INJURIES_NEVER
|
|
|
|
})
|
2019-09-10 04:30:56 +00:00
|
|
|
&& {!(_unit getVariable [QEGVAR(medical,deathBlocked), false])}
|