Code: Select all
on_nth_tick(tick, f)
Register a handler to run every nth tick(s). When the game is on tick 0 it will trigger all registered handlers.
defines.events should be not.
on_nth_tick 's tick parameter can not be assigned a 0 value, that proves "on tick 0" should indicate game's tick
if game 0 tick will trigger on_init, on_load..or any boostrap events
That means on game tick 1, on_init or on_load should be already invoked at least one.
As i know, in defines.events handler, you can safely access game object
How about on_nth_tick(1, handler) ?