Using the surface object to draw a line to the closest object of the same kind.
Hi, Im trying to use the surface object to draw a line from the x and y co ordinates of one object to another of the same type, so someone could for example click the mouse to spawn an object (a point) and the last point created would draw a line to the new point, I'd like to have versions based on distance to the nearest object and last object spawned.
In practice this would be a bit like using the tool in ms paint that draws lines every time you click the mouse, and loops to the start when you double click.
Iv'e really tried to figure this out on my own but i'm really at a loss on how to do this, so if any click team code masters would like to share their wisdom, that would be very much appreciated :)