mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
removed useless doAnimation call when animation is not "unconscious" in unconscious state
This commit is contained in:
parent
2b9afcbb6c
commit
a7edd00420
@ -36,11 +36,7 @@ if (count _this > 3) then {
|
||||
};
|
||||
|
||||
// don't overwrite more important animations
|
||||
if (_unit getVariable ["ACE_isUnconscious", false] && {!_force}) exitWith {
|
||||
if (_animation != "Unconscious") then {
|
||||
[_unit, "Unconscious", 2] call FUNC(doAnimation);
|
||||
};
|
||||
};
|
||||
if (_unit getVariable ["ACE_isUnconscious", false] && {(_animation != "Unconscious")} && {!_force}) exitWith {};
|
||||
|
||||
// don't go unconscious if the unit isn't unconscious
|
||||
if (_animation == "Unconscious" && {!((_unit getVariable ["ACE_isUnconscious", false]) || (_unit getVariable ["ACE_isDead", false]))}) exitWith {};
|
||||
|
Loading…
Reference in New Issue
Block a user