Background for Starfield
Member of the ScriptObject script
voidfunctionGotoState(stringasNewState)

Description

Wiki Description

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

Documentation Comment

Sets the script's current state, calling the appropriate end/begin state events


Caveats

CK Wiki - Notes


Parameters

  1. stringasNewState

    CK Wiki Description

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


Examples

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

Auto-Generated Example

string myString__asNewState

myScriptObject__toCallFunctionOn.GotoState(myString__asNewState)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.