Difference between revisions of "RemoveItem - ObjectReference"

205 bytes removed ,  16:12, 23 January 2018
imported>Goggle
m (→‎Notes: This function, like its Skyrim counterpart, will remove the first instance of a item if said item is the same type. This is usually the item you have equipped.)
imported>Kalevala
 
Line 42: Line 42:


==Notes==
==Notes==
*The function accepts a form object, however you can't make a property to a form object, you need to create a property to another type of object that extends form. Most often a MiscObject, or Weapon, etc.
*Keywords and components in FormLists are supported as well, including mixed base objects, keywords, and components.
*Keywords and components in FormLists are supported as well, including mixed base objects, keywords, and components.
*Removing items by component does not scrap the items like extracting components via the workshop does, it simply removes the item itself (and which item is removed if multiple items have the specified component is non-deterministic). If you want to scrap, use [[RemoveComponents - ObjectReference|RemoveComponents]]
*Removing items by component does not scrap the items like extracting components via the workshop does, it simply removes the item itself (and which item is removed if multiple items have the specified component is non-deterministic). If you want to scrap, use [[RemoveComponents - ObjectReference|RemoveComponents]]
Anonymous user