Difference between revisions of "Reset - ObjectReference"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Scornett
m (Reverted edits by Scornett-Bot (talk) to last revision by Jlundin)
 
imported>Cipscis
m (→‎Notes: Removed extraneous apostrophe)
Line 31: Line 31:
== Notes ==
== Notes ==
*This function doesn't completely reset it to the esm like you might think. For instance, faction and relationship data isn't reset.
*This function doesn't completely reset it to the esm like you might think. For instance, faction and relationship data isn't reset.
*If the object being reset is not loaded, this optional parameter will do nothing, and the reset reference will be reset to it's editor location.
*If the object being reset is not loaded, this optional parameter will do nothing, and the reset reference will be reset to its editor location.


== See Also ==
== See Also ==
*[[ObjectReference Script]]
*[[ObjectReference Script]]

Revision as of 19:02, 20 February 2012

Member of: ObjectReference Script

Resets this object reference to its original location, resets its inventory, resurrects it if it's an actor, and in general tries to get it back to its original state. May optionally move it to the location of the specified reference instead.

Syntax

Function Reset(ObjectReference akTarget = None) native

Parameters

  • akTarget: The reference to optionally move the reset the object to.
    • Default: None

Return Value

None.

Examples

; Reset Joe to his original state
Joe.Reset()


; Reset Joe to his original state, but positioned at the specified marker
Joe.Reset(JoesMarker)

Notes

  • This function doesn't completely reset it to the esm like you might think. For instance, faction and relationship data isn't reset.
  • If the object being reset is not loaded, this optional parameter will do nothing, and the reset reference will be reset to its editor location.

See Also