• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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