{"name":"setTrafficDistance","title":"setTrafficDistance","type":"command","url":"https://community.bistudio.com/wiki/setTrafficDistance","revid":379469,"updated":"2026-10-31T00:10:40Z","groups":["Environment"],"status":"ok","games":{"tkoh":"1.01","arma3":"0.50"},"since":"tkoh 1.01","arma3_since":"0.50","description":"Set maximum ambient traffic draw distance (in 2D).\n\n> [!NOTE]\n> This command does nothing in Arma 3.","syntaxes":[{"syntax":"setTrafficDistance distance","params":[{"name":"distance","type":"Number","description":"draw distance (in meter)","type_expr":"Number"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"unary","right":{"text":"distance"}}],"examples":[{"code":["setTrafficDistance 1000;"]}],"see_also":["enableTraffic","setTrafficDensity","setTrafficGap","setTrafficSpeed"],"notes":[{"user":"Master85","date":"2011-12-02T10:58:00Z","text":"The distance is not to the drawn traffic itself but to the road section - i.e. the ambient traffic on a long road section which is only partially within the drawing distance is drawn entirely."}]}