Category: Objects
Since engine version: 5.1 OC
func Activate(caller)
{
caller->CreateMenu(GetID(), caller, 0, "No chopable objects in the vicinity!");
for(var obj in FindObjects(Find_InRect(-50, -50, 100, 100), Find_OCF(OCF_Chop), Find_NoContainer()))
caller->AddMenuItem("Chop down %s", Format("SetCommand(this, \"Chop\", Object(%d))", obj->ObjectNumber()), obj->GetID());
}