if jumpTimer == nil then
jumpTimer = createTimer(nil, false)
end
jumpTimer.Interval = 1000
jumpCounter = 0
jumpTimer.OnTimer = function(timer)
local counter = readInteger("_counter")
if timer.Interval == 1000 then
if counter - jumpCounter >= 3 then
jumpCounter = counter
print("do something")
timer.Interval = 3000
end
else
print("done waiting")
timer.Interval = 1000
end
end
jumpTimer.Enabled = true
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum