We put everything into a grid. And then instead of Vector3.Distance checking everyone with everyone, we simply send all grid entries around the player. This is extremely fast. In early uMMORPG tests, it was 30x faster than distance checking. The algorithm is less complex, so it scales well to large amounts of entities.