Difference between revisions of "OnItemAdded - ObjectReference"

Jump to navigation Jump to search
292 bytes removed ,  07:19, 25 September 2016
m
→‎Notes: Removed my note about this event not telling the difference between equipped items and unequipped items of the same type. That is actually a problem with RemoveItem.
imported>Goggle
(→‎Notes: Items caught that are the same type of an item equipped, will return the equipped item instead.)
imported>Goggle
m (→‎Notes: Removed my note about this event not telling the difference between equipped items and unequipped items of the same type. That is actually a problem with RemoveItem.)
 
Line 33: Line 33:
*Once an object has been added to a container it usually no longer exists. You can then only call inventory-safe functions on it.
*Once an object has been added to a container it usually no longer exists. You can then only call inventory-safe functions on it.
*You must use [[AddInventoryEventFilter - ObjectReference|AddInventoryEventFilter]] to receive this event, letting it know what items you care about.
*You must use [[AddInventoryEventFilter - ObjectReference|AddInventoryEventFilter]] to receive this event, letting it know what items you care about.
*This event will return the item of the same type that is equipped, instead of the item that has been caught by the event, if you need to remove that for any reason. In other words, it appears this event cannot differentiate between an equipped item from an unequipped item of the same type.


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

Navigation menu