setViewDistance: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| ofp |Game name=
| ofp


|1.00|Game version=
|1.00


|eff= local |Effects in MP=
|eff= local


|gr1= System |GROUP1=
|gr1= System


|gr2= Environment |GROUP2=
|gr2= Environment


| Set rendering distance. Setting view distance to &lt;{{=}} 0 resets the value to the client's options (set in <tt>Options → Video → General → Visibility → Overall</tt>).
| Set rendering distance. Setting view distance to &lt;{{=}} 0 resets the value to the client's options (set in <tt>Options → Video → General → Visibility → Overall</tt>).
Line 58: Line 58:
{{!}}5000
{{!}}5000
{{!}}?
{{!}}?
{{!}}} |Description=
{{!}}}


| [[setViewDistance]] distance |Syntax=
| [[setViewDistance]] distance


|p1= distance: [[Number]] - distance in metres |Parameter 1=
|p1= distance: [[Number]] - distance in metres


| [[Nothing]] |Return value=
| [[Nothing]]
   
   
|x1= <code>[[setViewDistance]] 2250;</code> |Example 1=
|x1= <code>[[setViewDistance]] 2250;</code>


|x2= <code>[[setViewDistance]] -1; {{codecomment|// reset view distance in {{arma3}}}}</code> |Example 2=
|x2= <code>[[setViewDistance]] -1; {{codecomment|// reset view distance in {{arma3}}}}</code>


| [[viewDistance]], [[setDetailMapBlendPars]], [[setTerrainGrid]], [[getObjectViewDistance]], [[setObjectViewDistance]] |See also=
| [[viewDistance]], [[setDetailMapBlendPars]], [[setTerrainGrid]], [[getObjectViewDistance]], [[setObjectViewDistance]]
}}
}}



Revision as of 12:09, 18 January 2021

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:
viewDistancesetDetailMapBlendParssetTerrainGridgetObjectViewDistancesetObjectViewDistance

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

Notes