
02-16-2010, 09:40 AM
|
|
Registered User
|
Join Date: Jun 2001
Location: North Carolina
Posts: 114
|
|
Need some quick help
|
Hey guys. Hoping to get a bit of help here. I'm working on a fishing system that initializes and brings up a button you have to press. if the correct button is pressed within x amount of seconds (we'll use 3 seconds), another button pops up with about 5 rounds of this. If the button is not pressed or the incorrect button is pressed, you lose.
I'm initializing the weapon and calling a timeout. The timeout runs through functions ShowButton(),CheckKeys().
showbutton determines a random number 0-3 and show the corresponding button. How can I make the button stay there for x seconds without having to call the timeout again. If that makes sense.
I'm running the timeout on a .05 timer which is constantly running the show arrow script and checking for a keydown.
I'm really sorry if this sounds confusing. If I need to elaborate more, i'll try. |
|
|
|