set_traffic_density(density)

Parameters:
density (float) percentage of the maximum vehicle density to spawn (must be between 0 and 1)
 
Returns:
none

Description:
Throttle the desired ambient vehicle density.

For example, if the maximum number of vehicles that can exist at any given time is 20, then setting the density to 0.5 will reduce the number of spawned vehicles to 10.

 

back to indexSR3 Script Action Documentation
Last updated: Tue, 09 Aug 2011 11:32:16