This container disappears when empty script causes a container to vanish after it has been emptied of loot.

This script is suitable for use as the OnClose event handler for a placeable.

Script: Container Disappear When Empty
Created By: Jaden Wagener
Created On: 08/30/02
//Causes a container to be destroyed once the loot inside is taken.
//Should be placed in a placeable container's OnClose slot.
void main()
  if ( GetFirstItemInInventory(OBJECT_SELF) == OBJECT_INVALID )
    DestroyObject(OBJECT_SELF, 0.0);

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.