Draws a line (using the associated Pen attributes) to a specified object.
object expression.DrawTo (Object)
object expression Required. An object expression that evaluates to an object in the Applies To list.
Object Required VObject. An object of type Bot, Cell, or VPoint.
When the Bounds property of the Screen object is set to wrapped mode, the line drawn to an object is the shortest of all possible paths after accounting for wrapping around each of the Screen display edges.
The following example used the DrawTo method to draw lines from all Bot objects to the center of the display area.
Use the Pen property to set the thickness, color, and style of the line that is drawn.
Bots.Pen.DrawTo World.Screen.Center