20.05.2017, 07:34
You mean function. It's also not exactly the same as it just finds the first vehicle that's in range regardless of the distance. For example if vehicles 5 and 20 are in range and you're closer to vehicle 20 then it will still return vehicle 5 because that's the first vehicle that's found to be in range. This may not matter for smaller distances but it gets worse with larger distance because more vehicles will get in range.