Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

component.setTimer{ } is used to set a component or function poll time

By default, it sets time for the main function, unless the callback parameter is specified with another function.

local TimerId = component.setTimer{delay=1000, callback=OnTimer, data="Some Data"}

function OnTimer(Data)
   trace("This function will be called when the timer is triggered")
end

  • No labels