Code gives error

Create an event to destroy the actor. Do all the stuff you want…inspect etc. Call the destroy actor event “AFTER” the item has been added to inventory.