Home   Help Search Login Register  

Author Topic: Delay function for script...  (Read 540 times)

0 Members and 1 Guest are viewing this topic.

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Delay function for script...
« on: 09 Dec 2004, 00:36:05 »
Ah, i'm sick and thinking like a plant :P

all i need to know is how to put a bloody delay  into a script so that you can only use it every say 20 seconds.
if you need the code, i can do so, but i would rather think youdon't  :)

then i can finish this bloody script.  :D
(Okay, mods, i won't spam here.  ;D )

Edit: Almost forgot. This script is activated via the action menu, not the radio or a trigger. That might help ya mates.  ::)
« Last Edit: 09 Dec 2004, 00:38:42 by Tyger »
"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re:Delay function for script...
« Reply #1 on: 09 Dec 2004, 01:59:55 »
hehe, told ya I wasn't thinking straight.

I had tried earlier:
Code: [Select]
? doAction = false : goto "exit"
....
doAction = false
....
#exit
~20
doAction =true
exit

this was to prevent the action being used for twenty seconds afterward.

it should be:
Code: [Select]
? !(doAction) : goto "exit"
...
doAction = false
....
#exit
~20
doAction =true
exit
::) ::) ::) ::) :o

gah, i hate being sick.  ::)
"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08