mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
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:
parent
39abfc78db
commit
ed1e95106d
@ -31,7 +31,7 @@ if (((_reviveVal == 1 && {[_unit] call EFUNC(common,isPlayer)} || _reviveVal ==
|
|||||||
if (_unit getVariable [QGVAR(inReviveState), false]) exitwith {
|
if (_unit getVariable [QGVAR(inReviveState), false]) exitwith {
|
||||||
if (GVAR(amountOfReviveLives) > 0) then {
|
if (GVAR(amountOfReviveLives) > 0) then {
|
||||||
private _lifesLeft = _unit getVariable[QGVAR(amountOfReviveLives), GVAR(amountOfReviveLives)];
|
private _lifesLeft = _unit getVariable[QGVAR(amountOfReviveLives), GVAR(amountOfReviveLives)];
|
||||||
if (_lifesLeft == 0) then {
|
if (_lifesLeft <= 0) then {
|
||||||
[_unit, true] call FUNC(setDead);
|
[_unit, true] call FUNC(setDead);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user