- Found in:
- Vanilla
eventOnEndState(stringasNewState)
Description
Wiki Description
Event called when the state the event is in about to be switched away from.
Documentation Comment
Event called before the script's state changes - passing in the new state
Parameters
stringasNewState
CK Wiki Description
The state that the script will be switching to after this one ends.
Examples
State Running
Event OnEndState(string asNewState)
Debug.Trace("Leaving the running state and going to the " + asNewState+ " state!")
EndEvent
EndStateAuto-Generated Example
Scriptname MyCoolScript extends ScriptObject
event OnEndState(string asNewState)
Debug.trace("Event received - OnEndState: asNewState = " + asNewState)
endEvent