Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Player freeze when key pressed?

Author
Message
AmazingGaming
12
Years of Service
User Offline
Joined: 23rd Sep 2012
Location: Good Question....
Posted: 17th Nov 2012 15:41
Hi and i was wondering if there is a way to freeze the player if I press a key (lets say G)

What I am trying to do is make a HUD where its kinda like a PDA and when I press (G) I start up the PDA and use WASD to navigate through the PDA.

I am trying to make it where when I navigate through the PDA with WASD my player does not move or look around while on the PDA.

If there is some way to make the character totally frozen then unfrozen when getting off the PDA, that would be great to know!
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 17th Nov 2012 16:42
Quote: "If there is some way to make the character totally frozen then unfrozen when getting off the PDA"


Using "plrfreeze=x" will allow you to freeze the player. Using "plrdisable=x" prevents the player from moving and looking around. They can be used like this:

plrdisable



plrfreeze



Quote: "What I am trying to do is make a HUD where its kinda like a PDA and when I press (G) I start up the PDA and use WASD to navigate through the PDA.

I am trying to make it where when I navigate through the PDA with WASD my player does not move or look around while on the PDA."


I assume that by activating the PDA hud, your "navigation" consists of the PDA hud image changing as the WSAD keys are pressed. In other words, the main PDA hud is displayed when G is pressed, pressing W will display the hud for that key, pressing S displays the hud for that key, and so on. Kind of like "flipping a page" if reading a book. If so and you don't want the player to move or look around, then "plrdisable=x" is what you want. You can still look around with "plrfreeze=x".


There's no problem that can't be solved without applying a little scripting.
AmazingGaming
12
Years of Service
User Offline
Joined: 23rd Sep 2012
Location: Good Question....
Posted: 17th Nov 2012 17:00
Thank you! The plrdisable works perfect!

Thanks for taking the time to create the script for me, for that here is a star ic:mariostar

Login to post a reply

Server time is: 2024-11-23 20:12:28
Your offset time is: 2024-11-23 20:12:28