OnAliasReset - Alias

From the Fallout4 CreationKit Wiki
Revision as of 14:07, 15 April 2013 by imported>Plplecuyer (Created page with "Category:Scripting Category:Papyrus Category:Events '''Member of:''' Alias Script Event called when this alias' script is reset. (As a result of a repeatable que...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: Alias Script

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

Syntax[edit | edit source]

Event OnAliasReset()

Parameters[edit | edit source]

None.

Examples[edit | edit source]

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

Notes[edit | edit source]

  • This event is the same as 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).

See Also[edit | edit source]