setViewDistance: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(added example, see also cleanup)
mNo edit summary
Line 54: Line 54:
<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|SETVIEWDISTANCE]]
[[Category:Scripting Commands|SETVIEWDISTANCE]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|SETVIEWDISTANCE]]
[[Category:Scripting Commands OFP 1.96|SETVIEWDISTANCE]]
[[Category:Scripting Commands OFP 1.46|SETVIEWDISTANCE]]
[[Category:Scripting Commands OFP 1.46|SETVIEWDISTANCE]]

Revision as of 12:15, 25 September 2014

Hover & click on the images for description

Description

Description:
Set rendering distance, in metres. Default is 900m (in OFP) or 1,200m (in ArmA), accepted range is 500m to 5,000m (in OFP) or 10,000m (in ArmA).
Groups:
Uncategorised

Syntax

Syntax:
setViewDistance distance
Parameters:
distance: Number
Return Value:
Nothing

Examples

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

Additional Information

See also:
viewDistancesetTerrainGridsetObjectViewDistance

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

Ceeeb
In OFP v1.96, 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.
galzohar
I tested the above and it seems to apply in Arma 2 as well. AI at a bit above 500m would stop engaging when I lowered the view distance down to 500m and re-engaged when I increased it back.
DesertEagle
In ArmA 2 viewDistance can be set up to 15 km with this command ( while from interface only 10 km )

Bottom Section