Posts: 1,781
Threads: 13
Joined: Sep 2009
Reputation:
0
however you like to call the algorithm, you have to use a linear search through all vehicles, checking and comparing the closest one, excluding the vehicleid you're sitting in indeed.
i would first script it as stock, then ocassionally transform it into a public callback, in case you want to call it from another filterscirpt, but then you could also use a stock in an .include file...
edit: wtf it took me 3 minutes to type this?