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 / Disable controls temporarily with timer?

Author
Message
racer13 fly
16
Years of Service
User Offline
Joined: 29th Jul 2008
Location: Wisconsin
Posted: 28th Oct 2009 05:12 Edited at: 28th Oct 2009 05:21
I've asked this before a while ago but I barely got a response. What I'm looking for to do is have the player spawn, but they have only limited controls, like they can look around with the mouse but they can't use anything else, as if they're chained to a chair and the lock eventually lets go. Or even better would be if it would be unlocked once a sound finishes playing.
Can anyone help me out with this? This would really help me out a lot in my current project. I know it's possible because that one small response I got was saying that it is, but I then asked if they could help me get a script out but they didn't reply after.
Thanks!

EDIT: Sorry, after I read over I realized it sounded as if I'm requesting a script, which is against the rules. I mainly posted here because I think that this is something that other people would be able to use, to help make their games more unique, kind of like the project I'm working on now.
Again, sorry if it sounds as if I broke the rules, I guess I shouldn't have put the subject as a question? (I think someone is writing a response now saying that I broke the rules , lol.)
And just saying, I do know kind of how to script the language used, I just can't quiet figure out how to do this one .
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 28th Oct 2009 07:22
You can use the "plrfreeze" command. Give it the amount of time that you want the player to be frozen for (in milliseconds)

Example:
plrfreeze=4000
Will freeze the player for 4 seconds.


The one and only,


racer13 fly
16
Years of Service
User Offline
Joined: 29th Jul 2008
Location: Wisconsin
Posted: 29th Oct 2009 00:13
How about the possibility of basing it on when an audio file is finished playing?
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 30th Oct 2009 04:15
Make the timer wait as long as the audio file is?


The one and only,


SuPeR_DuDe911
15
Years of Service
User Offline
Joined: 17th Jun 2009
Location: I see a light....
Posted: 30th Oct 2009 19:58
figure out how long the song is and make the timer play for the audio file's full length
racer13 fly
16
Years of Service
User Offline
Joined: 29th Jul 2008
Location: Wisconsin
Posted: 30th Oct 2009 21:38 Edited at: 30th Oct 2009 21:51
Would this script work? I'm not sure if i would or not, still learning the language.

Thanks, guys.

EDIT: Ok, I tested it, but it repeats and won't let go at all. How can I make it happen once and not repeat?
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Posted: 30th Oct 2009 22:34
add state=1 to the end of the first line so it will read


racer13 fly
16
Years of Service
User Offline
Joined: 29th Jul 2008
Location: Wisconsin
Posted: 30th Oct 2009 22:35
Thanks, I'll try that now.

Login to post a reply

Server time is: 2024-11-25 08:05:18
Your offset time is: 2024-11-25 08:05:18