| 01-15-2007, 09:35 PM | #1 |
It seems that I can't play a unit's "walk" animation (neither with spells nor with triggers). It performs it for about 0.1 seconds and then it stops... Why? Is there any way to perform (and loop) that animation? Thanks. |
| 01-15-2007, 10:19 PM | #2 |
ive had some problems with some spells playing animations and i think you need a small wait/timer in your trigger before the play animation call, that is, if you do have the event Finishes casting an ability. |
| 01-16-2007, 01:53 PM | #3 |
I already tried starting the trigger when the spell is finished, but the unit doesnt's play the animation anyway. |
| 01-16-2007, 02:07 PM | #4 |
You need to run the walk animation in a trigger loop of some sort. Also, make sure you either pause the unit, or use some means to prevent other orders being issued. If another order is issued, it will stop playing the animation and change it. Generally, pausing a unit then running the animation works best. |
| 01-16-2007, 02:14 PM | #5 |
Warcraft is funky -- triggers, spells, whatever, just won't play it, full stop. You need the jass animationbyindex thingy. |
| 01-16-2007, 02:27 PM | #6 |
I sometimes forget that anyother function exists. JASS:call SetUnitAnimationByIndex(YourUnit, SomeInteger) Trigger: Don't trust Magos or something else, since those organize alphabetically, not by index. |
| 01-16-2007, 04:12 PM | #7 |
Yes, it works! The only problem is that every unit has a different "walk" animation... Thanks, rep added to Rao and Rising too :) |
