PoA_PRC8/module/nss/trashbarrel.nss
Jaysyn904 128e7e59a4 Initial upload
Initial upload
2022-10-07 14:20:31 -04:00

24 lines
606 B
Plaintext

/*--------------------------------------------------------
Script Name: trashbarrel
----------------------------------------------------------
Created By: Genisys(Guile)
Created On: 2/09/09
----------------------------------------------------------
This script goes in the OnClose Event of a container, it
will destroy everything inside upon closing.
----------------------------------------------------------*/
void main()
{
object oMe = OBJECT_SELF;
object oItem = GetFirstItemInInventory(oMe);
while(GetIsObjectValid(oItem))
{
DestroyObject(oItem, 0.0f);
oItem = GetNextItemInInventory(oMe);
}
}