GotoState - ScriptObject

From the Fallout4 CreationKit Wiki
Revision as of 11:23, 3 December 2015 by imported>Plplecuyer (→‎Parameters)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: ScriptObject

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

Syntax[edit | edit source]

Function GotoState(string asNewState)

Parameters[edit | edit source]

  • 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 Value[edit | edit source]

None.

Examples[edit | edit source]

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

Notes[edit | edit source]

See Also[edit | edit source]