Background for Starfield
Member of the Scene script
eventOnPhaseEnd(intauiPhaseIndex)

Description

Wiki Description

Event called when a scene phase ends.

Documentation Comment

Event received when a phase ends (in parallel with the fragment)


Caveats

CK Wiki - Notes

  • This event runs in parallel with the scene phase end fragment.
  • The scene phase will not be considered finished until the fragment and events on all scripts (on the quest or remotely registered) have finished running.
  • Because the scene phase index is an index, it will change if someone changes the phase order in the editor, so make sure to update your event accordingly.

Parameters

intauiPhaseIndex

CK Wiki Description

The phase index that just ended.


Examples

Event OnPhaseEnd(int auiPhaseIndex)
  Debug.Trace("Scene phase " + auiPhaseIndex + " has just finished")
endEvent

Auto-Generated Example

Scriptname MyCoolScript extends Scene

event OnPhaseEnd(int auiPhaseIndex)
    Debug.trace("Event received - OnPhaseEnd: auiPhaseIndex = " + auiPhaseIndex)
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.