Background for Starfield
Member of the ScriptObject script
eventOnEndState(stringasNewState)

Description

Wiki Description

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

Documentation Comment

Event called before the script's state changes - passing in the new state


Parameters

stringasNewState

CK Wiki Description

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


Examples

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

Auto-Generated Example

Scriptname MyCoolScript extends ScriptObject

event OnEndState(string asNewState)
    Debug.trace("Event received - OnEndState: asNewState = " + asNewState)
endEvent

Related Pages


Additional References

View this event’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.