GotoState - ScriptObject

Member of: ScriptObject

Sets this object's current state, issuing OnBeginState - ScriptObject and OnEndState - ScriptObject events as necessary.

SyntaxEdit

Function GotoState(string asNewState)

ParametersEdit

  • asNewState: The state to go to. Subsequent calls to GetState will return this string exactly as passed in. The state name is not case-sensitive.

Return ValueEdit

None.

ExamplesEdit

; Set this object as being in the "Running" state
GotoState("Running")

NotesEdit

See AlsoEdit