for i, hut in GetObjectNamesByType("PEASANT_HUT") do Trigger(4, hut, "func") SetObjectEnabled(hut, nil) end