🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
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.