Difference between revisions of "RemoveItem - ObjectReference"
m
More info on last note.
imported>B1gBadDaddy (→Notes: Added note that items that have only existed in containers will not work.) |
imported>B1gBadDaddy m (More info on last note.) |
||
Line 69: | Line 69: | ||
***Use the [[OnItemAdded - ObjectReference]] event on the second container to obtain the incoming items | ***Use the [[OnItemAdded - ObjectReference]] event on the second container to obtain the incoming items | ||
***Finally use [[RemoveItem - ObjectReference]] to send all but the unwanted item(s) back to the first container | ***Finally use [[RemoveItem - ObjectReference]] to send all but the unwanted item(s) back to the first container | ||
*The function does not work on object references that have only existed inside containers. | *The function does not work on object references that have only existed inside containers, for example an item the player has crafted, unless akItemToRemove is the Self variable and called from a script attached to the object. | ||
== See Also == | == See Also == |