Skip to content

Ghost Sensor

pkrinsky294 edited this page Oct 6, 2018 · 2 revisions

Ghosts can be detected using the sensor. The sensor is limited to a range of 100.

Robot.ghostSensor.getPing();

int getPing() will return the distance of the closest ghost (within range) in the direction of travel

int getRadar() will return the distance of the closet ghost (within range) in all directions

Clone this wiki locally