REO-EE/_module/nss/struc_on_close.nss
Jaysyn904 f82740bbbd Initial commit
Initial commit
2024-02-22 13:22:03 -05:00

14 lines
349 B
Plaintext

// This script simply destroys the construction site if there is nothing inside
// of it. Typically this is called when the player removes a constructed item
// from its inventory.
// Created by Zunath on August 2, 2007
void main()
{
if(GetFirstItemInInventory(OBJECT_SELF) == OBJECT_INVALID)
{
DestroyObject(OBJECT_SELF);
}
}