Amon_PRC8/_module/nss/trashcollect.nss

12 lines
265 B
Plaintext
Raw Permalink Normal View History

2025-04-03 19:00:46 -04:00
void main()
{
object oItemToDestroy = GetNearestObject(OBJECT_TYPE_ITEM);
if (oItemToDestroy != OBJECT_INVALID)
{
ActionMoveToObject(oItemToDestroy);
ActionPickUpItem(oItemToDestroy);
ActionDoCommand(DestroyObject(oItemToDestroy));
}
}