Skip to content
KCKingdoms Connected Scripting APIScripting guides and API
Global functionServer APIGenerated

setInterval()

setInterval(handler, milliseconds?, …args): Timeout

Defined in: server/api.d.ts:8990

Calls a function repeatedly, waiting the delay between calls.

(…args) => void

Function to call.

number

Delay before the call.

…unknown[]

Arguments passed to the handler.

Timeout

Handle to pass to the matching clear function.