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 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * / if ( GetFirstItemInInventory(OBJECT_SELF) == OBJECT_INVALID ) { DestroyObject(OBJECT_SELF, 0.0); } }
Attributes | Values |
---|---|
rdfs:label |
|
rdfs:comment |
|
dcterms:subject | |
abstract |
|