Timers

Can a timer be stopped with any player input, but be restarted after say 15 seconds after being stopped if there is no further player input?

Share some code if you can...:)


"player input" when the player runs a command, or when the player is typing in the command bar?

In the case of the former, I wouldn't expect it to be too hard.

In the latter case you'd have to use javascript; which is probably better for running timers anyway.


Any key press I would say. I may have to work it out differently once I see it in action in game.


I would assume you could stop the main timer with input/text input and as you stop the first timer, start a second to run the first timer again when it reaches 15secs. Once the second timer reaches its 15sec limit, reset it to zero then run as required.

-=Darchy=-


Log in to post a reply.

Support

Forums