onInit
On onInit gets triggered once, when CET loads in all the mods. This event ensures that CET has fully loaded, and you have access to the Scripting API. There can be only one onInit event per mod.
Use it to register any Observers, as well as do any one-off actions needed for your mod.
Usage Example
registerForEvent('onInit', function()
print('Game is loaded')
end)Last updated