I'd like to write a script that can identify the nearestObject in the typeOf CIVILIAN cars. I really want it to be able to identify the whole class of vehicles, rather than each vehicle type individually, but I think I must work with an array, like:
_veh = ["RAPID","TRABANT","MINI","SKODA","SKODARED","SKODAGREEN","SKODABLUE","RAPIDY","TruckV3SCivil","JAWA"]
My problem is: I don't quite know where to take it from here and I've pulled out my last strands of hair. I know that I need to use PLAYER Distance _veh (not quite with that syntax, but you get the idea), but I am not sure how to call the nearest vehicle in the _veh array. Any thoughts?
Thanks,
ADM