Triggering Animations?

Topics regarding Scripting with Reality Factory
Post Reply
User avatar
blutwurstchen
Posts: 57
Joined: Wed Mar 19, 2008 8:51 pm

Triggering Animations?

Post by blutwurstchen » Thu Apr 09, 2009 7:00 pm

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.

User avatar
metal_head
Posts: 1244
Joined: Sat Jan 05, 2008 8:31 pm
Location: Bulgaria,Sofia
Contact:

Re: Triggering Animations?

Post by metal_head » Thu Apr 09, 2009 7:48 pm

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
}

User avatar
blutwurstchen
Posts: 57
Joined: Wed Mar 19, 2008 8:51 pm

Re: Triggering Animations?

Post by blutwurstchen » Sat Apr 11, 2009 12:25 am

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

Post Reply