Background for Fallout 4
Member of the ObjectReference script
eventOnReset()

Description

Wiki Description

Event called when the object is reset.

Documentation Comment

Event received when this reference is reset


Caveats

CK Wiki - Notes

  • References that do not reset will not receive this event.
  • 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.
  • Quests receive this event when the quest is started up. (Aliases receive Alias.OnAliasReset())
  • 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).
  • Created refs never reset (i.e. refs placed via PlaceAtMe)

Examples

Event OnReset()
  Debug.Trace("This object was reset")
endEvent

Auto-Generated Example

Scriptname MyCoolScript extends ObjectReference

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