EGGOXdevelopers

Timers

after(seconds, tag) runs once.

after(seconds, tag) runs once. every(seconds, tag) repeats. Both emit timer(tag); stop_timer(tag) cancels the timer. Reusing a tag replaces its timer. Timers belong to the copy, not a player, so include the player id in a tag for personal timers and cancel them on leave as appropriate.

after: 0 to 3600 seconds. every: 0.35 to 3600 seconds. Tags are limited to 64 characters, and there can be 64 timers in a copy. Timers run on the room tick; they are not a high-frequency animation loop.

This page as markdown: /api/timers.md