Difference between revisions of "OnContainerChanged - ObjectReference"

Added note about OnContainerChanged event still being fired if an item was removed with RemoteItem() with a FormList or Keyword argument.
imported>Plplecuyer
 
(Added note about OnContainerChanged event still being fired if an item was removed with RemoteItem() with a FormList or Keyword argument.)
 
Line 38: Line 38:
== Notes ==
== Notes ==
*Once an object has been added to a container it ceases to exist in most cases. Most functions (except those that are inventory-safe) will fail to run with an error.
*Once an object has been added to a container it ceases to exist in most cases. Most functions (except those that are inventory-safe) will fail to run with an error.
*Reminder: If you call RemoveItem() on an object and don't give it a destination container it is destroyed... such destroyed objects won't run an OnContainerChanged event.
*Reminder: If you call RemoveItem() on an object and don't give it a destination container it is destroyed... such destroyed objects won't run an OnContainerChanged event. However, if an item is destroyed by RemoveItem() being called with a FormList or Keyword argument, the OnContainerChanged event will still be fired.


== See Also ==
== See Also ==
*[[ObjectReference Script]]
*[[ObjectReference Script]]
7

edits