A periodic event that allows the Lua script to "wake up" and perform background tasks at regular intervals (default 500ms
). It provides a single argument count
which is the number of times the tick
function has been invoked (including the current) since the server started.
function tick(count)
-- Do background work here
end