• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 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!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

[Solved] [HELP] Play an unit's animation?

Not open for further replies.
Level 9
Aug 7, 2009
hello there,..
I want to ask about animations today,..
what to use when it's animation tag is "stand - 2"? in "Animation - Play unit's ??? animation" ??
Stand 2? or Stand two?
As same as attack, etc...
If you need more infomation, just ask
I can't explain it well..
Level 26
Aug 18, 2009
These additions work like variations or modifiers. You cannot specify them exactly. Stand - 2 belongs to the stand group. There is a Play Unit Animation With Rarity action, each animation is a rarity assigned, like the Footman drinks sometimes from his bottle, which is a stand animation but much more often executes the other stuff. Play With Rarity can favor "rare" or "often" animations within a group but that is kind of imprecise.

To properly make the unit play a certain animation, use the Jass function
native SetUnitAnimationByIndex takes unit whichUnit, integer whichAnimation returns nothing
Animations have a numeric id, counting upwards, starting with 0. This id can be read out from the model. In case you are not familiar with modelling, may as well try the numbers out.
Not open for further replies.