Hey, So i am triyng to make only one AI car follow me instead of all cars, wich is possible trough the menu. The only Option there to my info is to make all cars follow you, but is it possible to make only one follow you?
Are you shure that it isnt possible by write the correct code in the BeamNG drive console? Because if this is possible what would be the correct code?
You can do this with the AI Control UI app. Switch to the vehicle you want to follow you, and set it's mode to Follow
I've done a similar thing multiple times: Spawn two vehicles from the vehicle selector Set the AI in radial menu to Follow Mode - now the other car will follow you Spawn traffic via the radial menu - they will drive normally, while the other car keeps following you I did that in 0.32 the last time, so it might not work anymore. Also, I did it with Flee/Chase Mode, but it should work with Follow Mode as well.
You can do it manually with console using two commands: Code: ai.setTargetObjectID(12345) ai.setMode("follow") Replace 12345 with the ID of your vehicle (or any vehicle you want to get followed) then execute both lines on the vehicles you want to have following the other vehicle. Use the console dropdown menu to select the correct car and see the vehicle IDs you need to use.