• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

How to play this animation?

Status
Not open for further replies.
Time and time again people ask about specific animations. I will not try to dig for old threads, we only need moderators on HIVe to remove them so that the fucking memory space dont fuck up like they are right now. Anyway back to the point about animations. You can use custom script to play animation by Index which I need someone else to explain as I forgot wait let me check my book . .
call SetUnitAnimationByIndex(udg_leaper, 1)
you can use GUI variable but remember to include udg_ infront that is a code that will use the GUI variable. :) Enjoy
 
No, SetUnitAnimationByIndex plays the animation of a unit based on the frame sequence. So if "Stand" animation is from frame 1 to 1000 and "Walk" is from frame 1001 to 2500. Then SetUnitAnimationByIndex(unit, 0) will play "Stand" animation while SetUnitAnimationByIndex(unit, 1) plays the "Wallk" Animation. Just view the animation sequence in Mdlvis or test each index until your desired animation is played.
Note that each model file can have different frame sequence.
Therefore, index 0 may play "Stand" to some units, while it may play "Attack" or "Spell" or "Walk" to other units. It all depends on the model it is using.
 
Status
Not open for further replies.
Back
Top