PGCC_PRC8/_module/nss/pc_trash.nss
Jaysyn904 e51634d39b Initial upload
Initial upload.
2024-10-09 14:17:22 -04:00

19 lines
442 B
Plaintext

void main()
{
object oItem = GetFirstItemInInventory(OBJECT_SELF);
int iEmptied = 0;
while (GetIsObjectValid(oItem))
{
DestroyObject(oItem);
iEmptied = 1;
oItem = GetNextItemInInventory(OBJECT_SELF);
}
if (iEmptied == 1)
{
effect eEffect = EffectVisualEffect(VFX_IMP_DESTRUCTION);
ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, OBJECT_SELF, 1.0);
}
}