Hey,
What im trying to make is a timer that performs its action every 7 seconds… BUT
Im trying to make it work like this:
I have to variables
[lua]
local Enable = false
local counter = 0
[/lua]
What im trying to achieve is (in pseudo code) that if any of the condition is failing during the delta time of the 7 seconds, then abort the current timer, and if both condition is met for FULL 7 seconds, then fire
I hope that makes any sense.
[lua]
if (Enable==true and counter==0) then
Every 7 seconds
– make action
end
[/lua]
Ive tried to use the timer.cancel() but still no luck…
Any help will be appreciated
Roy.