way for item script to detect if the item is in a container

Post » Sun Jan 15, 2017 7:27 pm

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.
User avatar
Sammie LM
 
Posts: 3424
Joined: Thu Nov 30, 2006 1:59 pm

Return to V - Skyrim