ResetReference

DescriptionEdit

ResetReference Completely resurrects and resets all data on a reference.

This is very similar to what you'd get if you did a PlaceAtMe with the reference's base object. It will:

  • Resurrect (same as the function ResurrectActor)
  • Re-level if its base object is leveled to player or templated from a Leveled Actor list
  • Recreate its inventory based on its base object
  • Reposition to its editor location
  • Reset Faction and relationship data [this is currently not implemented, see task 7840]
  • Clears variables on script attached to baseobject directly in the editor (not from scripts due to being in an alias) [this is currently not implemented, see task 7840]

Note: this function does work on non-actor references as well.

SyntaxEdit

[ActorREF.]ResetReference

ExamplesEdit

BuddyRef.ResetReference

Buddy is completely restored to his "original" self, as if he never existed until this moment.

NotesEdit

See AlsoEdit

ReferenceEdit

Papyrus VersionEdit

Reset - ObjectReference