Difference between revisions of "RemoveItem - ObjectReference"

Jump to navigation Jump to search
m
→‎Notes: LVLI as akItemToRemove
imported>Fg109
(added note)
imported>JustinOther
m (→‎Notes: LVLI as akItemToRemove)
Line 37: Line 37:
*If you pass in a form list, it will remove aiCount of each item in the form list from the container. If there isn't aiCount of a particular item in the container, it will remove all of them.
*If you pass in a form list, it will remove aiCount of each item in the form list from the container. If there isn't aiCount of a particular item in the container, it will remove all of them.
*The function seems to have a preference for equipped items.  Or if not equipped items then the first instance of the item that's in inventory (which is the same thing, since when you equip something, it's the first instance of the object in the inventory).
*The function seems to have a preference for equipped items.  Or if not equipped items then the first instance of the item that's in inventory (which is the same thing, since when you equip something, it's the first instance of the object in the inventory).
*The akItemToAdd argument of [[AddItem - ObjectReference]] can be a LeveledItem. A LeveledItem as akItemToRemove, however, won't work and the members of the LeveledItem must be passed individually as akItemToRemove.


== See Also ==
== See Also ==
Anonymous user

Navigation menu