Docs/API

Tasks and timers

Inspect and cancel task handles created by spawn, after and every in scenario scripts.

API version 1Lua 5.1Updated 2026-11-07

Returned by spawn, after and every.

task:cancel()#

Stops the task. It never runs again; if it is the task calling cancel, it stops at its next wait.

task:alive()#

false once it finished, failed or was cancelled.

Found a mistake or missing detail? Tell us in the Discord.