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

Non-platform specific questions.

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

Postby pavel329 » Wed Jun 14, 2006 3:56 pm

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.
Drugs r bad.
Mgaay?

Image
User avatar
pavel329
 
Posts: 269
Joined: Thu May 25, 2006 2:05 pm
Location: Behind you
Score: 5 Give a positive score

Postby Just4Fun » Wed Jun 14, 2006 10:53 pm

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
I've learned that I still have a lot to learn.

** Makslane == Genious **
Just4Fun
 
Posts: 524
Joined: Tue Jul 01, 2003 5:19 am
Location: USA: Washington State; West Coast
Score: 6 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest