Difference between revisions of "OnItemRemoved - ObjectReference"

→‎Notes: Pointing to OnItemEquipped for those who come to this page seeking for a solution to catch the use consumable items.
imported>Plplecuyer
 
imported>Scrivener07
(→‎Notes: Pointing to OnItemEquipped for those who come to this page seeking for a solution to catch the use consumable items.)
 
(One intermediate revision by one other user not shown)
Line 22: Line 22:
   if !akDestContainer
   if !akDestContainer
     Debug.Trace("I dropped " + aiItemCount + "x " + akBaseItem + " into the world")
     Debug.Trace("I dropped " + aiItemCount + "x " + akBaseItem + " into the world")
   elseif akSourceContainer == Game.GetPlayer()
   elseif akDestContainer == Game.GetPlayer()
     Debug.Trace("I gave the player " + aiItemCount + "x " + akBaseItem)
     Debug.Trace("I gave the player " + aiItemCount + "x " + akBaseItem)
   else
   else
Line 31: Line 31:


== Notes ==
== Notes ==
*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.
*If you're looking to catch the use of consumable items, use [[OnItemEquipped - Actor]].


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