Page 1 of 1

how do i make only one animation of an actor do something?

PostPosted: Wed Jun 14, 2006 3:56 pm
by pavel329
how can i make it where the animation of my character attaking hurts the enemy.but the rest of the animations don't?becuz it would be cheap if i just walked into the enemy without attaking and killed him.

PostPosted: Wed Jun 14, 2006 10:53 pm
by Just4Fun
Maybe animpos or animindex would help with your problem :?:

animpos: The actual animation frame. Animpos will change the frame of your current animation only. To change animation without reseting current frame, use the "No change" option in Change Animation action (NO_CHANGE in the script).

animindex: 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.


Try this thread for more specifics of animindex: http://game-editor.com/forum/viewtopic. ... =animindex