Sol.timers.ScheduleTimer

Sol.timers.ScheduleTimer = function(addonName, delay, fn, repeatDelay, timerName, onUpdateFnName)

Creates a new timer that will execute 'fn' after the specified delay, and periodically.

NOTE: This function requires you to have an OnUpdate handler for some visible frame. By default, this is _OnUpdate (you can specify a different handler with the optional onUpdateFnName parameter). This function need not do anything, but it must exist and must be called from an  script tag in your xml. If your frame ever gets hidden, the OnUpdate won't tick and the timer won't work!

Parameters: + addonName     - Your addon's name + delay         - How long to wait before executing 'fn' the first time (in seconds) + fn            - A callback function with the following sinature: function(addonName, timerID). Called every timer tick + repeatDelay   - If you wish to run 'fn' periodically, use this to specify how often (in seconds, optional) + timerName     - Name for the timer; can be used to more easily identify it (optional) + onUpdateFnName - The name of the OnUpdate handler to use (optional) Defaults to _OnUpdate Return: + a timer ID that can be used with Sol.timers.GetTimer and Sol.timers.RemoveTimer

Post: + 'fn' will be executed once after 'delay' time, and then again every 'repeatDelay' time, as long as the update frame is visible (that is, as long as the function referred to by onUpdateFnName gets called)