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 steps in a zone and cant move until press Enter

Author
Message
Jonez
User Banned
Posted: 21st Jan 2010 14:46
Can some one do a scrip when player steps in a zone he cant move until he press enter. I need this padly and fast for my game. Im gonna use it whit text and investigates in game. I dont know howto script and i dont have time to learn right now. maybe i learn someday
The Zoq2
15
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 21st Jan 2010 23:16
Hi what mod are u using, i think fenix has a freeze but stock dont.
I made s script but sum1 need to put in the freeze command on the lines, i think it shuld work if some1 can find a freeze comand.

PW Productions
15
Years of Service
User Offline
Joined: 13th Mar 2009
Location: sitting in a chair.
Posted: 22nd Jan 2010 04:24
plrfreeze is in stock FPSC as well.

I think it would be...



Basically, it's checking if the player is in the Trigger Zone, if it is, it freezes the player, then moves on to the next state. Then, if the player is 'using', it freezes the player for zero seconds, then destroys itself to prevent the player from getting stuck in the zone in a huge loop of having to press enter.

Download the FPI EditPad, it's a life saver.

-PwP

New Site is up! Go check it out!
The Zoq2
15
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 22nd Jan 2010 17:50
Yea i saw it in the fpsc guide but it wasn't in fpi editpad.
Marc Steene
FPSC Master
18
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 22nd Jan 2010 19:51
:state=0:state=1
:state=1,plrwithinzone=1:state=2
:state=2:plrfreeze=500
:state=2,plrusingaction=1:state=3
:state=3:state=3

Put the above script in a trigger zone.


FPSC MIGRATION: http://bit.ly/5I8LYO
FPSC NUCLEAR EXPLOSION: http://bit.ly/67v8GI
PW Productions
15
Years of Service
User Offline
Joined: 13th Mar 2009
Location: sitting in a chair.
Posted: 23rd Jan 2010 00:33
Did you try mine or not...?

New Site is up! Go check it out!
Flatlander
FPSC Tool Maker
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 23rd Jan 2010 04:53 Edited at: 23rd Jan 2010 04:54
plrfreeze is a newer command that came out after FPI EditPad.

You probably want to put an unimaginable amount of time in the first plrfreeze because it is like the timer where the time is in milliseconds and the player will automaticall "unfreeze" after 500 miliiseconds. Very short time. You probably want to use PW Production's suggested huge amount of milliseconds. PWP, that should work. I usually put 500000 in there but if you want to make sure the player doesn't get "unfrozen" automatically you can put a bigger number in there.

FYI, plrfreeze freezes the players movement but he can still look around with the mouse. There is a command that is plrdisable that will totally disable the player where not only can't he move but he can't look around either. plrdisable works the same as plrfreeze as it is timer based. I tried to get Lee to do it as a switch but he seemed to want to do it this way; which has its merits as well.

-----------------------------------------------
OliveTreeGames
Marc Steene
FPSC Master
18
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 24th Jan 2010 03:58
But Flatlander, as state two is constantly being run and will not change until the the player presses enter, the player will be constantly refrozen because the action is being repeatedly run (or at least it should be?). Actually, now that I look back at PW Productions script, it looks more efficient than my one


FPSC MIGRATION: http://bit.ly/5I8LYO
FPSC NUCLEAR EXPLOSION: http://bit.ly/67v8GI
PW Productions
15
Years of Service
User Offline
Joined: 13th Mar 2009
Location: sitting in a chair.
Posted: 21st Feb 2010 06:14 Edited at: 21st Feb 2010 06:14
Quote: "You probably want to use PW Production's suggested huge amount of milliseconds. PWP, that should work. I usually put 500000 in there but if you want to make sure the player doesn't get "unfrozen" automatically you can put a bigger number in there"
.

I did it right? Whoa...

@Marc, mine's efficient? Whoa...

And also, back at Flatlander, I thought plrfreeze was in the command library of the EditPad...? And, I never knew you could put any number into plrfreeze; I thought the max was 9999. Learn something new everyday

EDIT: Crap, huge bump, apologies - I didn't realise it Sorry.

New Site is up! Go check it out!

Login to post a reply

Server time is: 2024-11-25 03:00:56
Your offset time is: 2024-11-25 03:00:56