• 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.

Help with unit's walk animation when force moving!

Status
Not open for further replies.
Level 18
Joined
Oct 18, 2007
Messages
930
Ok when im force moving a unit i cant use this trigger
  • Animation - play Buddah's Walk animation
it just does to the normal Stand Animation -.-

And i got a tip from my friend to use this
JASS:
SetUnitAnimationByIndex
But how in the world im a supposed to use that?? someome please help!
 
Last edited:
Level 40
Joined
Dec 14, 2005
Messages
10,532
Each unit has a unique set of animation indexes (0, up to numAnimations-1) for their animations, which that function can be used to call.

To find out the walk index for a unit, you pretty much have to brute force it. You could also make a trigger which, for example, set a unit's animation to the index typed in every type the player typed a chat message.

As for the actual function use, for example, call SetUnitAnimationByIndex(myUnit,5) would play the unit's 6th animation.


If you aren't going to specify either GUI or Jass, please just don't tag the thread.

~Thread tag (and pseudo-tag in the title) removed
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
I dont think SetUnitAnimationByIndex will work either for this
Thing you should do is moving unit by
SetUnitX
SetUnitY functions
Those dont interrupt animation and attacking they just move
 
Status
Not open for further replies.
Top