Background for Starfield
Member of the Alias script

Description

Wiki Description

Event called when this alias' script is reset. (As a result of a repeatable quest resetting)

Documentation Comment

Event received when the quest owning this alias is reset


Caveats

CK Wiki - Notes

  • This event is the same as ObjectReference.OnReset() but named differently to be able to tell the difference between an alias resetting and the object pointed at by the alias resetting.
  • Your script's data has already been reset by the time you receive this event (and your OnInit has been run), so if you need to retain any information between Resets, you need to store the information somewhere else.
  • This event is received when a repeatable quest is started up.
  • Any event registrations that have been done before the object was reset (and before OnInit would have been called) will have been cleared.
  • This event does not block other events, functions, or properties from running (unlike OnInit).

Examples

Event OnAliasReset()
  Debug.Trace("This alias was reset")
endEvent

Auto-Generated Example

Scriptname MyCoolScript extends Alias

event OnAliasReset()
    Debug.trace("Event received - OnAliasReset")
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.