GotoState - All Scripts
From Creation Kit
Member of: Any and all scripts.
Function GotoState(string asNewState)
- 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 with the state blocks in script.
; Set this object as being in the "Running" state GotoState("Running")