Difference between revisions of "OnItemAdded - ObjectReference"

m
→‎Notes: native function -> Member function
imported>Jlundin
 
imported>Tunaisafish
m (→‎Notes: native function -> Member function)
Line 31: Line 31:


== Notes ==
== Notes ==
*Once an object has been added to a container it is no longer valid to call native functions on it. Native functions on aiItemReference will most likely fail to run with an error.
*Once an object has been added to a container it is no longer valid to call member functions on it. Member functions on akItemReference (which is often None) will most likely fail to run with an error.
*If you only care about certain kinds of objects, you should also use [[AddInventoryEventFilter - ObjectReference|AddInventoryEventFilter]] to filter out any events for things you aren't interested in.
*If you only care about certain kinds of objects, you should also use [[AddInventoryEventFilter - ObjectReference|AddInventoryEventFilter]] to filter out any events for things you aren't interested in.


Anonymous user