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
| Name | Type | Documentation |
|---|---|---|
| callback | String | the callback label to register the function against. |
| function | DynamicFunction | the function handling the callback. |
Returns
| Name | Type | Documentation |
|---|---|---|
| return | () | No Documentation 🚧 |