AddItemAlt
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
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).