In the basic traffic model included in the models library, adding the following line:
ask turtles with [color = red]
[set car-ahead min-one-of other turtles in-cone 50 0 [distance myself]]
will set the car-ahead to be a car that may be behind the red car. How could I force the minimum distance to be in the direction of travel - to find the nearest car in front?