Difference between revisions of "RemoveItemTarget"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Jazzisparis
(Created page with "{{Function |origin = NVSE |summary = Similar to the vanilla RemoveItem - removes <i>quantity</i> of the specified item from the calling reference's inventory. However, i...")
 
imported>Jazzisparis
Line 1: Line 1:
{{Function
{{Function
  |origin = NVSE
  |origin = JIP
  |summary = Similar to the vanilla [[RemoveItem]] - removes <i>quantity</i> of the specified item from the calling reference's inventory. However, instead of being destroyed, the items are moved to the specified <i>target</i> container/actor.
  |summary = Similar to the vanilla [[RemoveItem]] - removes <i>quantity</i> of the specified item from the calling reference's inventory. However, instead of being destroyed, the items are moved to the specified <i>target</i> container/actor.
  |name = RemoveItemTarget
  |name = RemoveItemTarget

Revision as of 14:54, 27 March 2015

< [[::Category:Functions|Category:Functions]]

A function added by the JIP NVSE Plugin.

Description

Similar to the vanilla RemoveItem - removes quantity of the specified item from the calling reference's inventory. However, instead of being destroyed, the items are moved to the specified target container/actor.

Syntax

[help]
reference.RemoveItemTarget item/list:ref target:ref quantity:int

Example

SourceRef.RemoveItemTarget Camera TargetRef

This will move all Camera items from SourceRef to TargetRef.

SourceRef.RemoveItemTarget NVHoldoutWeapons TargetRef 4

This will move 4 of each item in the list NVHoldoutWeapons from SourceRef to TargetRef.

Notes

  • The removed items retain all their current stats (health, script, mods, ownership, etc.).
  • If quantity is not specified or is <= 0, all instances of the item are removed.
  • The function accepts a FormList as parameter (in place of an item) and also supports sub-lists.

See Also