I have made a small script to remove some items from the game if dropped to the ground and the player leaves the cell:
Scriptname aadpLifeTime extends ObjectReference
Event OnCellDetach()
self.disable()
self.delete()
;debug.messagebox("working")
endevent
Is there a way (edit to my script ) to prevent this from running if the items are in a container and/or in the players owned cell?
I am mainly concerned with the items not getting deleted if the player puts them in a container.