• 🏆 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!

[Trigger] Loop Anims?

Status
Not open for further replies.
Level 3
Joined
Feb 20, 2007
Messages
32
If you make a periodic timer, it just resets the animation every time it starts, if it's to fast the animation never finishes, but otherwise if a unit receives an order, he'll just change his animation. You'd need to make a trigger for every order ID for that unit, and order it to change it's animation, in addition to a periodic trigger. But, that wouldent make the animation go through it's full cycle... Lol, you'd need a global variable to count how long the animation has been playing...

Well, as far as I know PauseUnit freezes and preserves animation, you could use that in place of a stop order for every type of order, just pause and unpause. Then the periodic trigger would take care of sending and looping the animation. That's probably the easiest way to go without using jass or unit replacement.
 
Status
Not open for further replies.
Top