GetState - ScriptObject

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

Member of: ScriptObject

Obtains the current state of the script, as a string.

Syntax[edit | edit source]

string Function GetState()

Parameters[edit | edit source]

None

Return Value[edit | edit source]

The script's current state, as it was last set by a GotoState call.

Examples[edit | edit source]

; Is this object currently in the "Running" state?
if (GetState() == "Running")
  Debug.Trace("We are currently in the running state")
endIf

See Also[edit | edit source]