JuniorRobot ScannedDistance Property Robocode Robot API for .NET
Current distance to the scanned nearest other robot (in pixels). If there is no robot in the radar's sight, this field will be less than 0, i.e -1. This field will not be updated while OnScannedRobot  event is active.

Namespace: Robocode
Assembly: robocode (in robocode.dll) Version: 1.9.2.0
Syntax

public int ScannedDistance { get; }

Property Value

Type: OnlineInt32
See Also