| 02-13-2007, 07:04 PM | #1 |
1 of all any animation tut? i want my standing unit 2 play the walk animation someone knows how? ty Cilla |
| 02-13-2007, 07:22 PM | #2 |
Animation - Play unit animation |
| 02-13-2007, 07:53 PM | #3 |
the walk animation is defined 2 be played only if a unit walks (sense?) i would need 2 edit the animation so that it can be played while standig or whatever but i don know how |
| 02-13-2007, 08:02 PM | #4 |
Its pretty simple. Use the SetUnitAnimationByIndex function, that forces a unit to play its animation. The function and its parameter's are: native SetUnitAnimationByIndex takes unit whichUnit, integer whichAnimation returns nothing But before you use this, you will need to find out its walk animation index, which can either be found by looking in a model editing program, or by testing each number until you find a walk animation (try 1-20 first). To use, you would do something like: GUI: Trigger: Custom Script: call SetUnitAnimationByIndex(MyGlobalUnit, WalkAnimationIndex)Jass: call SetUnitAnimationByIndex(MyGlobalUnit, WalkAnimationIndex) |
| 02-13-2007, 11:51 PM | #5 |
y already got that now but thatnks 4 ur help +rep Cilla |
