This hook is called whenever a world is initialized.
Callback function
The default name for the callback function is OnWorldStarted. It has the following signature:
function OnWorldStarted(World)
Parameters:
Name | Type | Notes |
World | cWorld | World that is started |
If the function returns false or no value, the next plugin's callback is called. If the function
returns true, no other callback is called for this event. There is no overridable behavior.
Code examplesRegistering the callback
cPluginManager:AddHook(cPluginManager.HOOK_WORLD_STARTED, MyOnWorldStarted);
|