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 (Fix regex)
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 0.50


|0.50|Game version=
|eff= local


|eff= local |Multiplayer Effects=
|gr1= System


|gr1= System |GROUP1=
|gr2= Environment


|gr2= Environment |GROUP2=
|descr= Sets the rendering distance of objects and shadows.
____________________________________________________________________________________________


| Sets the rendering distance of objects (and shadows). |DESCRIPTION=
|s1= [[setObjectViewDistance]] objectDistance
____________________________________________________________________________________________


| '''setObjectViewDistance''' distance |SYNTAX=
|p1= objectDistance: [[Number]]


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


| [[Nothing]] |RETURNVALUE=
|s2= [[setObjectViewDistance]] [objectDistance, shadowDistance]


| s2= '''setObjectViewDistance'''  [objectDistance, shadowDistance] |SYNTAX2=
|p21= objectDistance: [[Number]]


|p21= [objectDistance, shadowDistance]: [[Array]] |PARAMETER21=
|p22= shadowDistance: [[Number]]


|p22= objectDistance: [[Number]] |PARAMETER22=
|r2= [[Nothing]]


|p23= shadowDistance: [[Number]] |PARAMETER23=  
|x1= <sqf>setObjectViewDistance 2000;</sqf>


| r2= [[Nothing]] |RETURNVALUE2=
|x2= <sqf>setObjectViewDistance [2000, 800];</sqf>


 
|seealso= [[getObjectViewDistance]] [[setViewDistance]] [[viewDistance]] [[setDetailMapBlendPars]] [[setTerrainGrid]]
|x1= <code>[[setObjectViewDistance]] 2000;</code>|EXAMPLE1=
 
|x2= <code>[[setObjectViewDistance]] [2000,800];</code>|EXAMPLE2=
 
____________________________________________________________________________________________
 
| [[getObjectViewDistance]], [[setViewDistance]], [[viewDistance]], [[setDetailMapBlendPars]], [[setTerrainGrid]] |SEEALSO=
 
|  |MPBEHAVIOUR=
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
</dl>
<h3 style='display:none'>Bottom Section</h3>
{{GameCategory|arma3|New Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma3|Scripting Commands}}
<!-- DISCONTINUE Notes -->

Latest revision as of 13:19, 5 May 2022

Hover & click on the images for description

Description

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

Syntax

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

Alternative Syntax

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

Examples

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

Additional Information

See also:
getObjectViewDistance setViewDistance viewDistance setDetailMapBlendPars setTerrainGrid

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