set_ped_density(density)

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

Description:
Throttle the desired ambient pedestrian density.

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

 

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