ResetReference
Revision as of 17:12, 2 December 2011 by imported>Scornett-Bot (Script running global find and replace: = for '''=)
Description[edit | edit source]
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.
Syntax[edit | edit source]
[ActorREF.]ResetReference
Examples[edit | edit source]
BuddyRef.ResetReference
Buddy is completely restored to his "original" self, as if he never existed until this moment.