Help with RemoveAllItems?

Post » Thu Jul 30, 2015 4:38 pm

I have a custom container offering bowl to Nocturnal. I want, once I exit from the container add/remove item screen, to use RemoveAllItems to empty it. Ideally later I'll try to add a blessing for giving items, but for now I'm not sure what Event I would use to put in the script. OnActivate doesn't seem right since I want it to happen after I close the screen and OnClose seems to be refering to doors not containers.

User avatar
bimsy
 
Posts: 3541
Joined: Wed Oct 11, 2006 3:04 pm

Post » Thu Jul 30, 2015 12:40 am

Try OnItemAdded, possibly with an event filter. http://www.creationkit.com/OnItemAdded_-_ObjectReference

If needed, you could add a Utility.Wait(0.01) or something, which will pause the script until the menu closes.

User avatar
Lou
 
Posts: 3518
Joined: Wed Aug 23, 2006 6:56 pm


Return to V - Skyrim