repeatTask
fn
EngineTaskId repeatTask(UpdateFunc func, float interval, int count = - 1, bool canCallNow = false)Schedules a task to run every interval. Set count to limit how many times it runs. Use -1 to run indefinitely. If canCallNow is true, the task runs immediately.