Ancordia_PRC8/_module/nss/pcloot_close.nss

6 lines
175 B
Plaintext
Raw Normal View History

2023-09-21 19:51:32 -04:00
//Check if there are any items left and destroy the object if there are none
void main()
{
if (!GetIsObjectValid(GetFirstItemInInventory())) DestroyObject(OBJECT_SELF);
}