Returns a Group holding the Bot objects found within the specified radius from the current location.
object expression.GroupNear ([Radius],[Angle])
object expression Required. An object expression that evaluates to an object in the Applies To list.
Radius Optional Double. The radius distance within which to perform the search.
Angle Optional Double. The span angle that defines the area to perform the search.
The default values for Radius and Angle are defined with the ViewField object.
If the object this method applies to is a Cell object, then Angle is omitted.
The following example calculates the average speed of the Bot objects found within a radius of 50 from a Bot object.
Bots.ViewField.Radius = 50
avg_speed = Bot.GroupNear.Avg("Speed")