Where to start on a scripted player ?

Topics regarding Scripting with Reality Factory
Post Reply
User avatar
RageDeux
Posts: 16
Joined: Fri Jan 30, 2009 1:59 pm
Location: Brittain

Where to start on a scripted player ?

Post by RageDeux »

Well i can put a pawn in game / make it a turret and fire. (but that the easy bit)

But i havent a clue how i would make a scripted pawn a player.

Im looking on info for this as i would like to have full control on what the player can and cant do.
I have no knowledge on scripting but im willing to challenge my self so can i get a little help here please !

Thanks for reading!

................................
Some say i have a short attention span i say it's just HEY LOOK a rabbit......
User avatar
Juutis
Posts: 1511
Joined: Thu Jan 12, 2006 12:46 pm
Location: Finland

Re: Where to start on a scripted player ?

Post by Juutis »

If you know how to make your pawn move then it shouldn't be too hard to make the script take input (see: IsKeyDown() in the manual) and move accordingly. You should also check the genericplayer.s sample script that comes with RF.
Pain is only psychological.
User avatar
RageDeux
Posts: 16
Joined: Fri Jan 30, 2009 1:59 pm
Location: Brittain

Re: Where to start on a scripted player ?

Post by RageDeux »

Ok thanks juttis... (was not sure what to look under)

..........................
Some say i have a short attention span i say it's just HEY LOOK a rabbit......
User avatar
blutwurstchen
Posts: 57
Joined: Wed Mar 19, 2008 8:51 pm

Re: Where to start on a scripted player ?

Post by blutwurstchen »

I've come to the conclusion that for what I want to do, I really need to use a scripted player. I took a look at the genericplayer.s.

Is this script configured to work with virgil, or do I need to change animation names?
User avatar
QuestOfDreams
Site Admin
Posts: 1520
Joined: Sun Jul 03, 2005 11:12 pm
Location: Austria
Contact:

Re: Where to start on a scripted player ?

Post by QuestOfDreams »

It's not configured for Virgil, so you need to change the animations at the top of the script.
Post Reply