viewDistance: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma2 |Game name=
| arma2 |Game name=
Line 9: Line 8:


|gr2= Environment |GROUP2=
|gr2= Environment |GROUP2=
____________________________________________________________________________________________


| Returns the rendering distance. |DESCRIPTION=
| Returns the rendering distance. |DESCRIPTION=
____________________________________________________________________________________________


| '''viewDistance''' |SYNTAX=
| '''viewDistance''' |SYNTAX=
Line 27: Line 24:
|x1= <code>[[hint]] ("my view distance is " + [[str]] [[viewDistance]] + " meters");</code>|EXAMPLE1=  
|x1= <code>[[hint]] ("my view distance is " + [[str]] [[viewDistance]] + " meters");</code>|EXAMPLE1=  


____________________________________________________________________________________________


| [[setViewDistance]], [[setDetailMapBlendPars]], [[setTerrainGrid]], [[getObjectViewDistance]], [[setObjectViewDistance]]  |SEEALSO=  
| [[setViewDistance]], [[setDetailMapBlendPars]], [[setTerrainGrid]], [[getObjectViewDistance]], [[setObjectViewDistance]]  |SEEALSO=  


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
}}
}}



Revision as of 04:21, 17 January 2021

Hover & click on the images for description

Description

Description:
Returns the rendering distance.
Groups:
SystemEnvironment

Syntax

Syntax:
viewDistance
Return Value:
Number

Examples

Example 1:
hint ("my view distance is " + str viewDistance + " meters");

Additional Information

See also:
setViewDistancesetDetailMapBlendParssetTerrainGridgetObjectViewDistancesetObjectViewDistance

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

Bottom Section