- Found in:
- Vanilla
eventOnAliasReset()
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")
endEventAuto-Generated Example
Scriptname MyCoolScript extends Alias
event OnAliasReset()
Debug.trace("Event received - OnAliasReset")
endEvent