| 05-29-2006, 10:20 AM | #1 |
On a similar note to a question i asked earlier, i'm currently using the Jass function SetUnitAnimationByIndex. My function looks like: JASS:call SetUnitAnimationByIndex(GetEnumUnit(),91) And then i realised i needed a way to reference the 91. What i mean is that i need a way to keep track of the animation index number. Now my question is this - is there a way to detect the current animation index of a unit through Jass? and if so, what is the function? Or will i have to strore the value in an integer variable and do it that way? |
| 05-29-2006, 10:21 AM | #2 |
I don't think you can find the animation it is currently doing. Checked the common.j, and nothing I can see there. |
| 05-29-2006, 11:47 AM | #3 |
You cannot. If you only use the native for all anims, then you can just "attach" it to the unit using return bug and gamecache, but else it is not possible. |
