SetTrafficDensity
Description
Modify the number of active vehicles around the player. This number cannot be greater than the maximum number of vehicles set at initialize.
If the new number of active vehicles is less than the current active vehicles, the removing process will continue normally but no new vehicles will be instantiated until the active number of vehicles is less than the nrOfVehicles set inside the SetTrafficDensity method.
Declaration
Parameters
Name
Description
nrOfVehicles
The new number of active vehicles.
Example
Last updated