19 lines
442 B
Plaintext
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);
|
|
}
|
|
}
|