setViewDistance: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) mNo edit summary |
Lou Montana (talk | contribs) (Comment cleanup, description update) |
||
Line 9: | Line 9: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Set rendering distance | | 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>). | ||
{{Informative|Client-side max view distance is limited by the server's view distance.}} | |||
{{Important|view distance also defines the maximum distance between a unit and any other unit they can [[knowsAbout|know about]]. | |||
Higher view distance will involve more AI simulation cycles for every unit, which causes low performance.}} | |||
View distance information by game, to format ''min scripted/min UI/'''default'''/max UI/max scripted'':<br /> | |||
{{GVI|ofp|1.00}} ? / 500 / '''900''' / 5000 / ?<br /> | |||
{{GVI|arma1|1.00}} ? / ? / '''1200''' / 10000 / ?<br /> | |||
{{GVI|arma2|1.00}} ? / ? / '''1200''' / 10000 / 15000<br /> | |||
{{GVI|arma3|1.00}} 200 / 500 / '''1600''' / 12000 / 40000 |= Description | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [[setViewDistance]] distance |= Syntax | ||
|p1= distance: [[Number]] |= Parameter 1 | |p1= distance: [[Number]] - distance in metres |= Parameter 1 | ||
| [[Nothing]] |= Return value | | [[Nothing]] |= Return value | ||
Line 21: | Line 29: | ||
|x1= <code>[[setViewDistance]] 2250;</code> |= Example 1 | |x1= <code>[[setViewDistance]] 2250;</code> |= Example 1 | ||
|x2= <code> | |x2= <code>[[setViewDistance]] -1; {{codecomment|// reset view distance in {{arma3}}}}</code> |= Example 2 | ||
[[setViewDistance]] -1;</code> |= Example 2 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[viewDistance]], [[setDetailMapBlendPars]], [[setTerrainGrid]], [[getObjectViewDistance]], [[setObjectViewDistance]] | | [[viewDistance]], [[setDetailMapBlendPars]], [[setTerrainGrid]], [[getObjectViewDistance]], [[setObjectViewDistance]] |= See also | ||
}} | }} | ||
<h3 style="display:none">Notes</h3> | <h3 style="display:none">Notes</h3> | ||
<dl class="command_description"> | <dl class="command_description"> | ||
</dl> | </dl> | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Scripting Commands| | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands OFP 1.46|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting Commands OFP 1.96|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands | [[Category:Scripting Commands ArmA|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category: | [[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]] | ||
Revision as of 16:13, 25 May 2018
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).
View distance information by game, to format min scripted/min UI/default/max UI/max scripted:
1.00 200 / 500 / 1600 / 12000 / 40000
1.00 ? / 500 / 900 / 5000 / ?
1.00 ? / ? / 1200 / 10000 / ?
1.00 ? / ? / 1200 / 10000 / 15000
- Groups:
- Uncategorised
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: Uncategorised
- Scripting Commands: Local Effect
- Scripting Commands OFP 1.46
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.99
- Scripting Commands ArmA
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters