Difference between revisions of "OnBeginState"
Jump to navigation
Jump to search
imported>Jlundin |
imported>Cipscis (This event ''will'' be called when the object is sent into an undefined state, such as "") |
||
Line 4: | Line 4: | ||
'''Member of:''' Any and all scripts. | '''Member of:''' Any and all scripts. | ||
Event called when the state the event is in has just been switched to. Note that this | Event called when the state the event is in has just been switched to. Note that this event will ''not'' be called for an auto state when the object is initialized. | ||
This event ''will'' be called if the object it sent to a state that is not defined, including states that cannot be defined such as those with invalid names (e.g. "State #3" or ""). | |||
== Syntax == | == Syntax == |
Revision as of 00:03, 25 August 2012
Member of: Any and all scripts.
Event called when the state the event is in has just been switched to. Note that this event will not be called for an auto state when the object is initialized.
This event will be called if the object it sent to a state that is not defined, including states that cannot be defined such as those with invalid names (e.g. "State #3" or "").
Syntax
Event OnBeginState()
Parameters
None
Example
State Running
Event OnBeginState()
Debug.Trace("Entered the running state!")
EndEvent
EndState