setTrafficDistance

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Take On Helicopters version 1.01
  

Click on the images for descriptions

Introduced in

Game:
Take On Helicopters
Version:
1.01

Description

Description:
Set maximum ambient traffic draw distance (in 2D).

Syntax

Syntax:
setTrafficDistance distance
Parameters:
distance: Number - draw distance (in meter)
Return Value:
Nothing

Examples

Example 1:
setTrafficDistance 1000;

Additional Information

Multiplayer:
-
See also:
enableTrafficsetTrafficDensitysetTrafficGapsetTrafficSpeed

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Posted on December 2, 2011 - 10:58
Master85
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.

Bottom Section