AddItemAlt

From the Fallout3 GECK Wiki
Revision as of 15:12, 27 March 2015 by imported>Jazzisparis (Created page with "{{Function |origin = JIP |summary = Similar to the vanilla AddItem/AddItemHealthPercent - adds <i>quantity</i> of the specified item to the calling reference's inven...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the JIP NVSE Plugin.

Description

Similar to the vanilla AddItem/AddItemHealthPercent - adds quantity of the specified item to the calling reference's inventory. However, unlike the aforementioned functions, does not cause the infamous "invisible weapon" glitch when used on other actors.

Syntax

[help]
reference.AddItemAlt item/list:ref quantity:int condition:float{0-100}

Example

TargetRef.AddItemAlt Camera 10

This will add 10 Camera items to TargetRef's inventory.

TargetRef.AddItemAlt NVHoldoutWeapons 4 65

This will add 4 of each item in the list NVHoldoutWeapons to TargetRef's inventory, each with 65% health.

Notes

  • condition is optional and is defaulted to 100.
  • The function accepts a FormList as parameter (in place of an item).

See Also