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

[Trigger] animations need help

Status
Not open for further replies.
Level 40
Joined
Dec 14, 2005
Messages
10,532
Yes you can; there's no GUI equivalent for it, though.

native SetUnitAnimationByIndex takes unit whichUnit, integer whichAnimation returns nothing

Note: since the animation index (integer whichAnimation) varies per unit, the same integer will not work to play the same animation on multiple different models.

Example use;

  • Custom script: call SetUnitAnimationByIndex(GetTriggerUnit(),5)
Would play the Triggering Unit's (6th?) animation. (I think the index starts at 0)
 
Status
Not open for further replies.
Top