setViewDistance: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| ofp |Game name= | | ofp |Game name= | ||
Line 11: | Line 10: | ||
|gr2= Environment |GROUP2= | |gr2= Environment |GROUP2= | ||
| Set rendering distance. Setting view distance to <{{=}} 0 resets the value to the client's options (set in <tt>Options → Video → General → Visibility → Overall</tt>). | | Set rendering distance. Setting view distance to <{{=}} 0 resets the value to the client's options (set in <tt>Options → Video → General → Visibility → Overall</tt>). | ||
Line 61: | Line 59: | ||
{{!}}? | {{!}}? | ||
{{!}}} |Description= | {{!}}} |Description= | ||
| [[setViewDistance]] distance |Syntax= | | [[setViewDistance]] distance |Syntax= | ||
Line 68: | Line 65: | ||
| [[Nothing]] |Return value= | | [[Nothing]] |Return value= | ||
|x1= <code>[[setViewDistance]] 2250;</code> |Example 1= | |x1= <code>[[setViewDistance]] 2250;</code> |Example 1= | ||
|x2= <code>[[setViewDistance]] -1; {{codecomment|// reset view distance in {{arma3}}}}</code> |Example 2= | |x2= <code>[[setViewDistance]] -1; {{codecomment|// reset view distance in {{arma3}}}}</code> |Example 2= | ||
| [[viewDistance]], [[setDetailMapBlendPars]], [[setTerrainGrid]], [[getObjectViewDistance]], [[setObjectViewDistance]] |See also= | | [[viewDistance]], [[setDetailMapBlendPars]], [[setTerrainGrid]], [[getObjectViewDistance]], [[setObjectViewDistance]] |See also= |
Revision as of 04:57, 17 January 2021
Description
- Description:
- Set rendering distance. Setting view distance to <= 0 resets the value to the client's options (set in Options → Video → General → Visibility → Overall).
Game min. scripted min. UI default max. UI max. scripted Arma 3 200 500 1600 12000 40000 Arma 2: Operation Arrowhead 200 500 2500 10000 15000 Arma 2 200 500 3000 10000 15000 Armed Assault 200 500 1200 10000 ? Operation Flashpoint 500 500 900 5000 ? - Groups:
- SystemEnvironment
Syntax
- Syntax:
- setViewDistance distance
- Parameters:
- distance: Number - distance in metres
- Return Value:
- Nothing
Examples
- Example 1:
setViewDistance 2250;
- Example 2:
setViewDistance -1; // reset view distance in Arma 3
Additional Information
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
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: System
- Command Group: Environment
- Scripting Commands: Local Effect
- Scripting Commands OFP 1.46
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.99
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 3: Scripting Commands
- Take On Helicopters: Scripting Commands