Should be as simple as looping through the inventory OnDeath and deleting everything:
void main ()
{
object oItem = GetFirstItemInInventory(OBJECT_SELF);
while (GetIsObjectValid(oItem))
{
DestroyObject(oItem);
oItem = GetNextItemInInventory(OBJECT_SELF);
}
}
Modifié par Squatting Monk, 11 juillet 2013 - 07:06 .