IBasicRobotPeer Rescan Method Robocode Robot API for .NET
Rescan for other robots. This method is called automatically by the game, as long as the robot is moving, turning its body, turning its gun, or turning its radar.

Rescan will cause OnScannedRobot(ScannedRobotEvent) to be called if you see a robot.

There are 2 reasons to call Rescan() manually:
  1. You want to scan after you stop moving.
  2. You want to interrupt the OnScannedRobot event. This is more likely. If you are in OnScannedRobot and call Scan(), and you still see a robot, then the system will interrupt your OnScannedRobot event immediately and start it from the top.

This call executes immediately.

Namespace: Robocode.RobotInterfaces.Peer
Assembly: robocode (in robocode.dll) Version: 1.9.3.0
Syntax

void Rescan()
See Also