What it does
timer.every takes seconds and a function.
Signature
timer.every(seconds, () => {...})Arguments
seconds() => {...}
Example · generated
function start() { timer.every(1, () => {});}timer.every is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.