RemoveMeIRAlt

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

Removes the calling Inventory Reference from its containing object.

  • If quantity is not specified, or is <= 0, the whole count of the Inventory Reference will be removed.
  • If clearOwnership is not specified, or is not 0, ownership of the item will be cleared.
  • If targetRef is specified, the Inventory Reference will be moved to the target container, preserving all its stats/attributes (health, script, mods, etc.). Otherwise, it will be destroyed.

Syntax

[help]
reference.RemoveMeIRAlt quantity:int clearOwnership:0/1 targetRef:ref

Example

itemRef.RemoveMeIRAlt
itemRef.RemoveMeIRAlt 1 0 ContainerRef 

Notes

  • This function will invoke the OnDrop/OnAdd script-events (where applicable).

See Also