• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Animations

Status
Not open for further replies.
Level 18
Joined
May 11, 2012
Messages
2,103
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"))
 
Level 11
Joined
Jun 26, 2014
Messages
497
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"))

Im not sure if I understand everything. Can you post with named variables or better send a test map. Thanks!
 
Status
Not open for further replies.
Top