Open DoctorGester opened 7 years ago
MODIFIER_PROPERTY_OVERRIDE_ANIMATION does not override the animation if it's applied shortly (in a span of 2 server ticks) after the previous modifier with that property has been removed from a unit.
This is also officially documented in animations.lua part of the barebones library: https://github.com/bmddota/barebones/blob/source2/game/dota_addons/barebones/scripts/vscripts/libraries/animations.lua#L30-L31
I have been using CDOTA_BaseNPC:StartGesture() CDOTA_BaseNPC:StartGestureWithPlaybackRate() CDOTA_BaseNPC:RemoveGesture()
CDOTA_BaseNPC:StartGesture()
CDOTA_BaseNPC:StartGestureWithPlaybackRate()
CDOTA_BaseNPC:RemoveGesture()
This is a very different set of function behavior-wise.
MODIFIER_PROPERTY_OVERRIDE_ANIMATION does not override the animation if it's applied shortly (in a span of 2 server ticks) after the previous modifier with that property has been removed from a unit.
This is also officially documented in animations.lua part of the barebones library: https://github.com/bmddota/barebones/blob/source2/game/dota_addons/barebones/scripts/vscripts/libraries/animations.lua#L30-L31