setViewDistance: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
m (Some wiki formatting)
Line 85: Line 85:
|x1= <sqf>setViewDistance 2250;</sqf>
|x1= <sqf>setViewDistance 2250;</sqf>


|x2= <sqf>setViewDistance -1; // reset view distance in {{arma3}}</sqf>
|x2= <sqf>setViewDistance -1; // reset view distance in Arma 3</sqf>


|seealso= [[viewDistance]] [[setDetailMapBlendPars]] [[setTerrainGrid]] [[getObjectViewDistance]] [[setObjectViewDistance]]
|seealso= [[viewDistance]] [[setDetailMapBlendPars]] [[setTerrainGrid]] [[getObjectViewDistance]] [[setObjectViewDistance]]
}}
}}

Revision as of 20:20, 13 May 2022

Hover & click on the images for description

Description

Description:
Set rendering distance. Setting view distance to <= 0 resets the value to the client's options (set in Options → Video → General → Visibility → Overall).
Client-side max view distance is limited by the server's view distance.
View distance also defines the maximum distance between a unit and any other unit they can know about. Higher view distance will involve more AI simulation cycles for every unit, which causes low performance.
Game min. scripted min. UI default max. UI max. scripted
Arma 3 200 500 1600 12000 40000
Arma 2: Operation Arrowhead 200 500 2500 10000 15000
Arma 2 200 500 3000 10000 15000
Armed Assault 200 500 1200 10000 ?
Operation Flashpoint 500 500 900 5000 ?
Groups:
SystemEnvironment

Syntax

Syntax:
setViewDistance distance
Parameters:
distance: Number - distance in metres
Return Value:
Nothing

Examples

Example 1:
setViewDistance 2250;
Example 2:
setViewDistance -1; // reset view distance in Arma 3

Additional Information

See also:
viewDistance setDetailMapBlendPars setTerrainGrid getObjectViewDistance setObjectViewDistance

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note