From ed1e95106d0a0aa577ef9dd68378a42e62f9a18c Mon Sep 17 00:00:00 2001 From: AkiraforARMA <32061301+AkiraforARMA@users.noreply.github.com> Date: Tue, 10 Oct 2017 18:06:07 +0200 Subject: [PATCH] Priority ERROR units never die possibility (#5526) * Priority ERROR units never die possibility Cases when _lifesLeft goes below 0. Low or limb damage, then recovered with PAK from unconcious & revivestate. * Update fnc_setDead.sqf --- addons/medical/functions/fnc_setDead.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/medical/functions/fnc_setDead.sqf b/addons/medical/functions/fnc_setDead.sqf index 8ab98e872f..3949f2cfd9 100644 --- a/addons/medical/functions/fnc_setDead.sqf +++ b/addons/medical/functions/fnc_setDead.sqf @@ -31,7 +31,7 @@ if (((_reviveVal == 1 && {[_unit] call EFUNC(common,isPlayer)} || _reviveVal == if (_unit getVariable [QGVAR(inReviveState), false]) exitwith { if (GVAR(amountOfReviveLives) > 0) then { private _lifesLeft = _unit getVariable[QGVAR(amountOfReviveLives), GVAR(amountOfReviveLives)]; - if (_lifesLeft == 0) then { + if (_lifesLeft <= 0) then { [_unit, true] call FUNC(setDead); }; };