mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Only force animation when necessary
This commit is contained in:
parent
8fda984903
commit
d59436c588
@ -89,7 +89,7 @@ _anim = [_unit] call EFUNC(common,getDeathAnim);
|
|||||||
[{
|
[{
|
||||||
_unit = _this select 0;
|
_unit = _this select 0;
|
||||||
_anim = _this select 1;
|
_anim = _this select 1;
|
||||||
if (_unit getVariable "ACE_isUnconscious") then {
|
if ((_unit getVariable "ACE_isUnconscious") and (animationState _unit != _anim)) then {
|
||||||
[_unit, _anim, 2, true] call EFUNC(common,doAnimation);
|
[_unit, _anim, 2, true] call EFUNC(common,doAnimation);
|
||||||
};
|
};
|
||||||
}, [_unit, _anim], 2, 1] call EFUNC(common,waitAndExecute);
|
}, [_unit, _anim], 2, 1] call EFUNC(common,waitAndExecute);
|
||||||
|
Loading…
Reference in New Issue
Block a user