Page 1 of 1

Triggering Animations?

Posted: Thu Apr 09, 2009 7:00 pm
by blutwurstchen
Can anybody tell me how I would go about triggering animations. For example, to make a player wind a crank when the use button is selected or to animate them to make them turn the pages of a book?

I know how to animate the opening of doors in RF, my question is how can I trigger a player (or a pawn) animation when this is done?

Would appreciate any help.

Re: Triggering Animations?

Posted: Thu Apr 09, 2009 7:48 pm
by metal_head
Well just make the script check if a button is pressed and than do the action, like this:

Code: Select all

 if(IsKeyDown(22))
{
and the commands here
}
I'm just a beginner, so yo might want to ask someone that knows more than me :D

Code: Select all

if(self.key_pressed=22)
{
and the action here
}

Re: Triggering Animations?

Posted: Sat Apr 11, 2009 12:25 am
by blutwurstchen
So I guess it can only be done with a scripted player. Looks like I've got some learning to do.

Thanks for the help