Hi everyone!
I was wondering if it's possible to add a function to track the animations of certain units.
I mentioned this yesturday when making a suggestion on how to make Deftsu's katarina script handle the ultimate better.
if you have some suggestion please tell me , since with buffs, the kata R sound end before ult is finished, which causes a 1.0s~1.5s ult cancel, and using a fixed value fix the problem but if you will get silenced or something you will stand still until 2.5s are done..
My suggestion would be, instead of tracking katarina's ult using buffs or a fixed timer -- I would find something more reliable to track R.
In this case, it would probably be tracking the animation, since the animation stops when katarina gets cced but also stops after the full duration of the ultimate.
If I knew the API and lua - I would probably be of more help.
But I'll give you some code to show you the concept.
function OnAnimation(unit, animationName) if unit == myHero then if animationName == "Spell4" then CastingR = true IOW.movementEnabled = false IOW.attacksEnabled = false else CastingR = false IOW.movementEnabled = true IOW.attacksEnabled = true end end end