OnEndState - ScriptObject

From the Fallout4 CreationKit Wiki
Revision as of 15:43, 9 November 2012 by imported>Plplecuyer (moved OnEndState to OnEndState - ScriptObject)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: ScriptObject

Event called when the state the event is in about to be switched away from.

Syntax[edit | edit source]

Event OnEndState(string asNewState)

Parameters[edit | edit source]

  • asNewState: The state that the script will be switching to after this one ends.

Example[edit | edit source]

State Running
  Event OnEndState(string asNewState)
    Debug.Trace("Leaving the running state and going to the " + asNewState+ " state!")
  EndEvent
EndState

See Also[edit | edit source]

OnBeginState - ScriptObject