Timers

Forgewright
28 Oct 2018, 13:21Can 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...:)
mrangel
28 Oct 2018, 14:55"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.

Forgewright
29 Oct 2018, 00:22Any key press I would say. I may have to work it out differently once I see it in action in game.

-=Darchy=-
30 Oct 2018, 16:33I 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=-