HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How to play a unit animation if its moving with triggers?

08-03-2007, 11:27 PM#1
Exilus
In one of my maps, i control and move my units using points with Offsets X and Y on a periodic 0.01 timer. however i wonder if it would be possible to make them play a "walk" animation when i make them move. Is there any trigger wich would allow me to perform (and loop) an animation that ISN'T cancelled upon a "move unit instantly to..." trigger?

thanks.
08-03-2007, 11:43 PM#2
Naakaloh
native SetUnitAnimationByIndex (unit whichUnit, integer whichAnimation) returns nothing
Also, you'll need to figure out the index of the animation you want.
08-04-2007, 01:12 AM#3
Exilus
Thanks. +1 rep for you
08-04-2007, 01:33 AM#4
PenguinEmperor
You can easily do this without Jass too.

I beleive it's under cinematic.