setObjectViewDistance: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " 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


| arma3 |Game name=
| arma3


|0.50|Game version=
|0.50


|eff= local |Multiplayer Effects=
|eff= local


|gr1= System |GROUP1=
|gr1= System


|gr2= Environment |GROUP2=
|gr2= Environment


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


| '''setObjectViewDistance''' distance |SYNTAX=
| '''setObjectViewDistance''' distance


|p1= distance: [[Number]] |PARAMETER1=
|p1= distance: [[Number]]


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]


| s2= '''setObjectViewDistance'''  [objectDistance, shadowDistance] |SYNTAX2=
| s2= '''setObjectViewDistance'''  [objectDistance, shadowDistance]


|p21= [objectDistance, shadowDistance]: [[Array]] |PARAMETER21=
|p21= [objectDistance, shadowDistance]: [[Array]] |PARAMETER21=
Line 27: Line 27:
|p23= shadowDistance: [[Number]] |PARAMETER23=  
|p23= shadowDistance: [[Number]] |PARAMETER23=  


| r2= [[Nothing]] |RETURNVALUE2=
| r2= [[Nothing]]




|x1= <code>[[setObjectViewDistance]] 2000;</code>|EXAMPLE1=
|x1= <code>[[setObjectViewDistance]] 2000;</code>


|x2= <code>[[setObjectViewDistance]] [2000,800];</code>|EXAMPLE2=
|x2= <code>[[setObjectViewDistance]] [2000,800];</code>




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


| |MPBEHAVIOUR=
|
}}
}}



Revision as of 12:10, 18 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