{"name":"setConvoySeparation","operator":null,"title":"setConvoySeparation","type":"command","url":"https://community.bistudio.com/wiki/setConvoySeparation","revid":376358,"updated":"2025-10-07T21:39:25Z","groups":["Object Manipulation"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.68"}],"since":{"game":"arma3","name":"Arma 3","version":"1.68"},"arma3_since":"1.68","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Sets the distance to keep to the vehicle which is **in front**.\n\n- This command has to be applied to all vehicles in a convoy in order to have a separation of, for example, 50 m.\n- Vehicles in a convoy can also have different distances.\n- It's recommended that small values (<10m) should only be used for slowly moving convoys, otherwise AI driven vehicles will leave the road frequently to avoid collisions","syntaxes":[{"syntax":"vehicle setConvoySeparation distance","since":null,"effect":null,"exec":null,"params":[{"name":"vehicle","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"vehicle: Object"},{"name":"distance","type":"Number","optional":false,"default":null,"description":null,"types":["Number"],"since":null,"text":"distance: Number"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"vehicle","types":["Object"]},"right":{"text":"distance","types":["Number"]}}],"examples":[{"text":"```sqf\ncursorObject setConvoySeparation 20;\n```","code":["cursorObject setConvoySeparation 20;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["forceFollowRoad","useAISteeringComponent"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Object Manipulation","Introduced with Arma 3 version 1.68","Scripting Commands"]}