14 lines
349 B
Plaintext
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);
|
||
|
}
|
||
|
}
|