setObjectViewDistance: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(command doesn't work)
m (Fix regex)
 
(48 intermediate revisions by 6 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
____________________________________________________________________________________________


| Sets the rendering distance of objects.
|gr1= System


'''This command does nothing and also throws error when 3 element array is passed: <nowiki>http://feedback.arma3.com/view.php?id=11835</nowiki>'''  |= Description
|gr2= Environment
____________________________________________________________________________________________


| '''setObjectViewDistance''' dist |= Syntax
|descr= Sets the rendering distance of objects and shadows.


|p1= dist: [[Number]] or [[Array]] - Array in format [vehiclesZ, staticZ, treesZ]  |= PARAMETER1
|s1= [[setObjectViewDistance]] objectDistance


| [[Nothing]] |= RETURNVALUE
|p1= objectDistance: [[Number]]


|r1= [[Nothing]]


|x1= <code>setObjectViewDistance 2000</code>|= EXAMPLE1
|s2= [[setObjectViewDistance]] [objectDistance, shadowDistance]


____________________________________________________________________________________________
|p21= objectDistance: [[Number]]


| [[setViewDistance]] |= SEEALSO
|p22= shadowDistance: [[Number]]


| |= MPBEHAVIOUR
|r2= [[Nothing]]
____________________________________________________________________________________________
}}


<h3 style='display:none'>Notes</h3>
|x1= <sqf>setObjectViewDistance 2000;</sqf>
<dl class='command_description'>
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|x2= <sqf>setObjectViewDistance [2000, 800];</sqf>
</dl>


<h3 style='display:none'>Bottom Section</h3>
|seealso= [[getObjectViewDistance]] [[setViewDistance]] [[viewDistance]] [[setDetailMapBlendPars]] [[setTerrainGrid]]
[[Category:Arma 3: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]

Latest revision as of 14: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