Scriptname SavedItemsBoxScript extends ObjectReferenceFormlist Property myNewEmptyFL AutoEvent OnItemAdded(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akSourceContainer) RegisterForSingleUpdate(2) If (akBaseItem As Armor) ; All clothing is Armor right? myNewEmptyFL.AddForm(akBaseItem) EndIfEndEventEvent OnUpdate() ; It's been 2 seconds since the last added itemEndEvent
The pain with this though is the threading, and that multiple NPC's could be knocked out together.
The events on the container would start to populate the formlist while your main script is waiting for Resurrect.
You may be able to use the 2 second thing to set a state on the container that events have finished.
Umm, I give up. I think it would break too easily.
It will be far easier to wait for SKSE and do an inventory loop directly
