OnBeginState - ScriptObject

From the Fallout4 CreationKit Wiki
Revision as of 15:42, 9 November 2012 by imported>Plplecuyer (moved OnBeginState to OnBeginState - 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 has just been switched to. Note that this block will NOT be called for an auto state when the object is initialized.

Syntax[edit | edit source]

Event OnBeginState(string asOldState)

Parameters[edit | edit source]

  • asOldState: The state that the script was in before it switched to the current one

Example[edit | edit source]

State Running
  Event OnBeginState(string asOldState)
    Debug.Trace("Entered the running state from the " + asOldState + " state!")
  EndEvent
EndState

See Also[edit | edit source]

OnEndState - ScriptObject