15 lines
405 B
Plaintext
15 lines
405 B
Plaintext
|
/*******************************
|
||
|
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);
|
||
|
}
|
||
|
}
|