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 / scancodekeypressed help

Author
Message
BadKarma
12
Years of Service
User Offline
Joined: 2nd Sep 2012
Location: The Old Gein Farm
Posted: 1st Oct 2012 17:49
Is there a way to activate the scancodekeypressed without actually hitting the specified key on the keyboard, or a way to trick it to think that you hit the key?
For instance; in my WIP when you look at something too long, I would like my flashlight to go out. I have tried hudunshow,ambience=0 but I have to hit the F(33)key twice to turn the flashlight back on.
maho76
13
Years of Service
User Offline
Joined: 31st May 2011
Location: universe-hub, playing the flute
Posted: 1st Oct 2012 18:49 Edited at: 1st Oct 2012 18:52
scancodekeypressed implements that... well, you pressed a specified scancodekey ?

depends on the flashlight-script and how it is build. of course you can trigger this with zones or timer, using variables or activates. but it maybe a bit complicated, as said, depends on how the flashlight works and how it is build.

while i think that the need to press the button twice is a nice concept of coursing a little panic, as in real when your flashlight turns off in a strange situation, i bet you will hit it 5-10 times when it doesnt react with the first click.^^

BadKarma
12
Years of Service
User Offline
Joined: 2nd Sep 2012
Location: The Old Gein Farm
Posted: 2nd Oct 2012 18:55
Good point and thanks for the reply

Login to post a reply

Server time is: 2024-11-23 19:26:54
Your offset time is: 2024-11-23 19:26:54