OnPhaseEnd - Scene

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: Scene Script

Event called when a scene phase ends.

Syntax[edit | edit source]

Event OnPhaseEnd(int auiPhaseIndex)

Parameters[edit | edit source]

  • auiPhaseIndex: The phase index that just ended.

Examples[edit | edit source]

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

Notes[edit | edit source]

  • 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.

See Also[edit | edit source]