Skip to content

Commit

Permalink
fix stuck in uncon animation after CfgExtendedAnimation change (#8692)
Browse files Browse the repository at this point in the history
  • Loading branch information
diwako authored Nov 24, 2021
1 parent 94d0466 commit 24a28da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/medical_engine/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
// Fixes units being stuck in unconscious animation when being knocked over by a PhysX object
["CAManBase", "AnimDone", {
params ["_unit", "_anim"];
if (local _unit && {_anim find QGVAR(face) != -1 && {lifeState _unit != "INCAPACITATED"}}) then {
if (local _unit && {_anim find QUNCON_ANIM(face) != -1 && {lifeState _unit != "INCAPACITATED"}}) then {
[_unit, false] call FUNC(setUnconsciousAnim);
};
}] call CBA_fnc_addClassEventHandler;

0 comments on commit 24a28da

Please sign in to comment.