Difference between revisions of "RemoveItem - ObjectReference"
→Notes: Removed - can remove self ref objects from containers, tested and not working.
imported>B1gBadDaddy m (More info on last note.) |
imported>B1gBadDaddy (→Notes: Removed - can remove self ref objects from containers, tested and not working.) |
||
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, for example an item the player has crafted | *The function does not work on object references that have only existed inside containers, for example an item the player has crafted. Even if you use the Self reference. | ||
== See Also == | == See Also == |