setObjectViewDistance: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\{\{GameCategory\|(arma[0123])\|[ _]?New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
| arma3 |Game name=
Line 11: Line 10:


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


| Sets the rendering distance of objects (and shadows). |DESCRIPTION=
| Sets the rendering distance of objects (and shadows). |DESCRIPTION=
____________________________________________________________________________________________


| '''setObjectViewDistance''' distance |SYNTAX=
| '''setObjectViewDistance''' distance |SYNTAX=
Line 37: Line 34:
|x2= <code>[[setObjectViewDistance]] [2000,800];</code>|EXAMPLE2=  
|x2= <code>[[setObjectViewDistance]] [2000,800];</code>|EXAMPLE2=  


____________________________________________________________________________________________


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


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



Revision as of 02:30, 17 January 2021

Hover & click on the images for description

Description

Description:
Sets the rendering distance of objects (and shadows).
Groups:
SystemEnvironment

Syntax

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

Alternative Syntax

Syntax:
setObjectViewDistance [objectDistance, shadowDistance]
Parameters:
[objectDistance, shadowDistance]: Array
objectDistance: Number
shadowDistance: Number
Return Value:
Nothing

Examples

Example 1:
setObjectViewDistance 2000;
Example 2:
setObjectViewDistance [2000,800];

Additional Information

See also:
getObjectViewDistancesetViewDistanceviewDistancesetDetailMapBlendParssetTerrainGrid

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