Function help needed
Posted: Sat Jul 01, 2006 12:11 pm
I'd just like to know how the function, animindex would help making combat scenario's. I read something like using the code to make only 1 animation 'do damage' to another actor...?
Use animindex(count from 0) to find the actual animation of your actor. Each animation that an actor has has a unique index assigned to it. ( This way you can tell which animation is currently running. )
If your actor has 3 animations, then:
The first animation has animindex = 0
The second animation has animindex = 1
The third animation has animindex = 2
This variable is read only.