Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

register_callback

Registers a function as the handler of a callback, taking precedence over a top level function of that name.

register_callback("on_script_unloaded", function() print("unloading!") end)

Arguments

NameTypeDocumentation
callbackStringthe callback label to register the function against.
functionDynamicFunctionthe function handling the callback.

Returns

NameTypeDocumentation
return()No Documentation 🚧