RemoveMeIRAlt
From GECK
A function added by the JIP NVSE Plugin.
Contents
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
reference.RemoveMeIRAlt quantity:int clearOwnership:0/1 targetRef:ref
Example
itemRef.RemoveMeIRAlt
itemRef.RemoveMeIRAlt 1 0 ContainerRef