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 / Freeze while player is talking

Author
Message
Impaler
16
Years of Service
User Offline
Joined: 20th May 2008
Location: Everywhere...at the same time
Posted: 23rd Jun 2009 20:09
When the player goes to talk to somebody, I wanted to have a freeze effect like in Oblivion or Fallout. I already have it so that the talking will happen but I don't want the player to be able to walk away from important instructions. Any tips or pointers would be greatly appreciated.
Leon Kennedy
16
Years of Service
User Offline
Joined: 7th Sep 2008
Location: Neither here nor there
Posted: 23rd Jun 2009 20:58 Edited at: 23rd Jun 2009 20:59
Use the command PLRFREEZE. I'm assuming you want them to be frozen for a specified period of time, so do something like this:



It should be noted that it is assumed that when the character starts talking you move to state 10 (or whatever state you need to be in). In this example, once the talking starts a timer is started and the player is frozen (cannot move). After a specified number of milliseconds, the player is unfrozen and can move about. I don't know your level of scripting knowledge, so I'll tell you this one minor tip: 1000 milliseconds = 1 second. You have to use milliseconds for the timer command. So if you wanted to freeze the player for 1 minute, or 60 seconds, the number of milliseconds would be 60000.

Hope this helps!

Priest of the Church of Joe Wood

In memory of Nanee. 9/1/1993 - 5/16/2009. Rest in Peace, little girl.
Lewis
VBOTB Developer '10
19
Years of Service
User Offline
Joined: 16th Mar 2005
Location: Queensland, Australia
Posted: 23rd Jun 2009 21:27 Edited at: 23rd Jun 2009 21:37
Didnt they replace the plrfreeze for a timer one in 1.15?

if that script doesnt work, try this one:



That will cause it to play a sound and wait for ten seconds. Adjust the plrfreeze timer to however long the sound is. As Leon said above, 1000 is 1 second. I havent tried this yet so I dont know if it will work though.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 23rd Jun 2009 21:53
@Leon Kennedy:

You script snippet won't work, since the timer is constantly reset through "timerstart" and will never reach a value higher than a few milliseconds.


The one and only,


Leon Kennedy
16
Years of Service
User Offline
Joined: 7th Sep 2008
Location: Neither here nor there
Posted: 23rd Jun 2009 22:27
@ply: you are right. I should move to the next state first:



Priest of the Church of Joe Wood

In memory of Nanee. 9/1/1993 - 5/16/2009. Rest in Peace, little girl.
Impaler
16
Years of Service
User Offline
Joined: 20th May 2008
Location: Everywhere...at the same time
Posted: 24th Jun 2009 00:24
Thanks so much guys, this is a great help. I'm just learning to script
so this is a great thing to know.

Login to post a reply

Server time is: 2024-11-25 03:32:15
Your offset time is: 2024-11-25 03:32:15