Difference between revisions of "AddItemAlt"
Jump to navigation
Jump to search
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...") |
imported>Jazzisparis |
||
Line 29: | Line 29: | ||
*[[AddItemHealthPercent]] | *[[AddItemHealthPercent]] | ||
[[Category:Functions_(JIP)]] | [[Category:Functions_(JIP)]] | ||
[[Category:Inventory Functions (JIP)]] |
Latest revision as of 12:59, 30 March 2015
< [[::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
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).