Trash can

Creating A Trashcan
To make a trash can place an item, such as a barrel, in your arear then open the properties. Make sure "useable" and "has inventory" are checked, then go to scripts, and place the following script in "OnClose"

// Trash Can Script void main { object oItem = GetFirstItemInInventory; if(GetIsObjectValid(oItem)) {   while(GetIsObjectValid(oItem)) {       SetPlotFlag(oItem, FALSE); DestroyObject(oItem); oItem = GetNextItemInInventory; }   } }

Note
Remove any script's from "OnDeath" and "OnOpen" to make sure there is no treasure in the trash can when PC's open them.