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 / help with freezing player(another script not working for me)

Author
Message
cokacola
15
Years of Service
User Offline
Joined: 21st Dec 2008
Location: NSW, Australia
Posted: 20th Jan 2009 15:30
okay, I have a script using vars, that freezes the player whilst an unarmed character walks past...
and it unfreezes when the char dies, but it never freezes the player..
okay, here is the freezing script that is used on a trigger zone:

Here is the code for when the char is spawned

And here is the code for when the char dies

Okay, so nothing happons, well the char spawns and walks past, but it doesnt freeze the player, help is appericated thanks
P.S I hope my post hasn't got an error that a mod will have to yell at me for, even though i'm a newb and will prob be yelled at alot >.>

mehh
Red Eye
16
Years of Service
User Offline
Joined: 15th Oct 2008
Location:
Posted: 20th Jan 2009 16:57 Edited at: 20th Jan 2009 17:00


This for the First Script. i think, did not test it yet Didnt look yet to the others...

But why are you using variabels???? Just for fun to test it out...Or is there a reason?...


Red Eye - The Game: Work In Progress - W.I.P.
cokacola
15
Years of Service
User Offline
Joined: 21st Dec 2008
Location: NSW, Australia
Posted: 20th Jan 2009 17:08
kinda because its the only way I know how so far

mehh
Flatlander
FPSC Tool Maker
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 20th Jan 2009 21:06 Edited at: 20th Jan 2009 21:09
plrfreeze and plrdisable values are in milliseconds. In other words it is timed and not toggled. The player will freeze for as long as you indicate. So, if you use a value of 1, then the player will freeze for 1 millisecond and then unfreeze after that. I learned this from others as well because I thought it was a toggled command.

Yes, it makes it kind of difficult if you just want to toggle it and using variables would be one way to do that. In fact I myself wish it were a toggle rather than timed.

I suppose you can possibly set plrfreeze to a very extreme number that would never be reached and then reset plrfreeze to 0 when you want to end it. Setting it to zero will of course unfreeze the player immediately.

The past has a lot of memories to hold onto; but, today is chock full of new adventures, and, the future shouts out, "The best is yet to come!" -- TerryC
cokacola
15
Years of Service
User Offline
Joined: 21st Dec 2008
Location: NSW, Australia
Posted: 21st Jan 2009 03:05
cool, I will set the amount of milliseconds to 6 seconds, as that is how long the char walking past lives for
Thanks!

mehh
Red Eye
16
Years of Service
User Offline
Joined: 15th Oct 2008
Location:
Posted: 21st Jan 2009 18:07
Quote: "kinda because its the only way I know how so far "


okidoki


Red Eye - The Game: Work In Progress - W.I.P.

Login to post a reply

Server time is: 2024-11-24 18:42:59
Your offset time is: 2024-11-24 18:42:59