Mod:Creation Kit/OnInit - ScriptObject

Member of: ScriptObject

Event called when the script has been created and all its properties have been initialized.

Syntax
Event OnInit

Example
EVENT onInit                 ; This event will run once, when the script is initialized StartTimer(5) gotoState ("waiting") endEVENT STATE waiting EVENT onTimer(int aiTimerID) Debug.Trace("5 second timer expired!") endEVENT endSTATE
 * This is within the "empty" state

Parameters
None