Arma 3 Scripting

Command in Environment

setTrafficDensity

Also available as Markdown and JSON, or read the original wiki page.

Description

Set the density of ambient cars in a rectangle (in cars per kilometer).

Note

This command does nothing in Arma 3.

Syntax

setTrafficDensity [density, xMin, xMax, zMin, zMax]

Parameters:

Returns: Nothing

Examples

Example 1

setTrafficDensity [40, 31000, 32000, 30000, 32000];

See also

enableTraffic · setTrafficDistance · setTrafficGap · setTrafficSpeed