- Found in:
- Vanilla
eventOnBeginState(stringasOldState)
[DEV SERVER] Loading description...
Parameters
stringasOldState
CK Wiki Description
The state that the script was in before it switched to the current one
Examples
State Running
Event OnBeginState(string asOldState)
Debug.Trace("Entered the running state from the " + asOldState + " state!")
EndEvent
EndStateAuto-Generated Example
Scriptname MyCoolScript extends ScriptObject
event OnBeginState(string asOldState)
Debug.trace("Event received - OnBeginState: asOldState = " + asOldState)
endEvent