local update = createTimer(nil,false) -- parameters = owner,enabled
update.Interval = 1000; -- calling the function after 1 second
update.onTimer = function (sender) value = value + 1; sender.destroy(); end -- updates the variable value, and destroys the timer (sender = object that called the function)
update.Enabled = true; -- activates the timer -> enabled = true;
_________________
I'm rusty and getting older, help me re-learn lua.
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