Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:3.5

Description

Description:

Returns the dynamic draw distance for objects.

This value is different from the objectDrawDistance defined using setVideoSetting, as it is a dynamic value, based on the following formula: (1 / sqrt ( FOV vertical degrees * FOV horizontal degrees ) ) * 37000.

In order for the dynamic draw distance to actually be applied, the respective video option has to be enabled.

The minimum value is the objectDrawDistance value, defined in the user profile (as defined in the video options menu, and readable using getVideoSetting "objectDrawDistance" or loadProfileSetting "objectDrawDistance"), and the maximum is the MaxObjectDrawDistance value, defined in VBS3.cfg (see the VBS3.cfg Options in the VBS3 Administration Manual).

Syntax

Syntax:objectDrawDistance
Parameters:
Return Value:Number - Current dynamic draw distance.

Examples

Examples:
_dDist = objectDrawDistance

Additional Information

See also: getVideoSetting
Multiplayer: 
Problems: 

Notes