Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
How do I play an animation when a unit is moving. For example: You cast a spell which launches forward the hero in the desired direction. How do I make the hero play a certain animation while moving to the location?
For that you will have to use SetUnitX/X to move the unit (so its orders are not interrupted).
Then you can play the animation, and when the moving is over, just reset its animation, or play another desired animation.
Replace your GUI move command with these 2 scripts:
Custom script: call SetUnitX("Your unit variable here", GetLocationX("Your moving point here"))
Custom script: call SetUnitY("Your unit variable here", GetLocationY("Your moving point here"))
For that you will have to use SetUnitX/X to move the unit (so its orders are not interrupted).
Then you can play the animation, and when the moving is over, just reset its animation, or play another desired animation.
Replace your GUI move command with these 2 scripts:
Custom script: call SetUnitX("Your unit variable here", GetLocationX("Your moving point here"))
Custom script: call SetUnitY("Your unit variable here", GetLocationY("Your moving point here"))
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.