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
This commit is contained in:
AkiraforARMA 2017-10-10 18:06:07 +02:00 committed by PabstMirror
parent 39abfc78db
commit ed1e95106d

View File

@ -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);
};
};