Page 1 of 1

Where to start on a scripted player ?

Posted: Mon Feb 02, 2009 3:46 pm
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!

................................

Re: Where to start on a scripted player ?

Posted: Mon Feb 02, 2009 4:09 pm
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.

Re: Where to start on a scripted player ?

Posted: Mon Feb 02, 2009 11:43 pm
by RageDeux
Ok thanks juttis... (was not sure what to look under)

..........................

Re: Where to start on a scripted player ?

Posted: Sun Apr 19, 2009 6:35 pm
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?

Re: Where to start on a scripted player ?

Posted: Sun Apr 19, 2009 9:07 pm
by QuestOfDreams
It's not configured for Virgil, so you need to change the animations at the top of the script.