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 / activation delay

Author
Message
Scorple
15
Years of Service
User Offline
Joined: 3rd Jan 2009
Location:
Posted: 1st Aug 2009 06:32
I'm looking for a script that requires you to hold down the action key for a set amount of seconds before whatever you're tying to use will work, as if you're typing in a code on a switch with a number pad, does anyone know of a simple one?

Don't ask, don't tell <-< >->
Apple Slicer
16
Years of Service
User Offline
Joined: 14th Nov 2008
Location: Oregon, in the rain...
Posted: 1st Aug 2009 07:18
Hmm.

You could use timerstart, and timergreater commands to achieve this...as well as scancodekeypressed and huds.
Scorple
15
Years of Service
User Offline
Joined: 3rd Jan 2009
Location:
Posted: 1st Aug 2009 07:54
I know how to set a regular delay and huds and key activation and such, but how do I make it so you have to hold down the key? if I just set a timer and key requirement, you have to press the key, but you don't have to hold it down, and it'll still work after the set time is up as long as the key was pressed once, right?

Don't ask, don't tell <-< >->
zeza
16
Years of Service
User Offline
Joined: 27th Jun 2008
Location:
Posted: 5th Aug 2009 20:46 Edited at: 5th Aug 2009 20:47
Try this, just put what you want in place of [whatever]

;Artificial Intelligence Script

;Header

desc = test

;Triggers

:state=0,scancodekeypressed=28:timerstart,state=1
:timergreater=100,scancodekeypressed=28:incstate=1
:timergreater=101:state=0
:state=11: [whatever]

;End of Script

Login to post a reply

Server time is: 2024-11-25 05:53:55
Your offset time is: 2024-11-25 05:53:55