setViewDistance: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:Scripting Commands OFP 1.[4-9]{2}(\|(\{\{uc:\{\{PAGENAME\}\}\}\}|#|[A-Z]+))?\]\] " to "") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(20 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| ofp | |game1= ofp | ||
|version1= 1.00 | |||
|1.00 | |game2= ofpe | ||
|version2= 1.00 | |||
|game3= arma1 | |||
|version3= 1.00 | |||
|game4= arma2 | |||
|version4= 1.00 | |||
|game5= arma2oa | |||
|version5= 1.50 | |||
|game6= tkoh | |||
|version6= 1.00 | |||
|game7= arma3 | |||
|version7= 0.50 | |||
|eff= local | |eff= local | ||
Line 11: | Line 28: | ||
|gr2= Environment | |gr2= Environment | ||
| Set rendering distance. Setting view distance to <{{=}} 0 resets the value to the client's options (set in | |descr= Set rendering distance. Setting view distance to <{{=}} 0 resets the value to the client's options (set in {{hl|Options → Video → General → Visibility → Overall}}). | ||
{{Feature|Informative|Client-side max view distance is limited by the server's view distance.}} | {{Feature|Informative|Client-side max view distance is limited by the server's view distance.}} | ||
{{Feature|important|View distance also defines the maximum distance between a unit and any other unit they can [[knowsAbout|know about]]. | {{Feature|important|View distance also defines the maximum distance between a unit and any other unit they can [[knowsAbout|know about]]. | ||
Line 60: | Line 77: | ||
{{!}}} | {{!}}} | ||
| [[setViewDistance]] distance | |s1= [[setViewDistance]] distance | ||
|p1= distance: [[Number]] - distance in metres | |p1= distance: [[Number]] - distance in metres | ||
| [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>setViewDistance 2250;</sqf> | ||
|x2= < | |x2= <sqf>setViewDistance -1; // reset view distance in Arma 3</sqf> | ||
|seealso= [[viewDistance]] | |seealso= [[viewDistance]] [[setDetailMapBlendPars]] [[setTerrainGrid]] [[getObjectViewDistance]] [[setObjectViewDistance]] | ||
}} | }} | ||
Revision as of 20:20, 13 May 2022
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
- See also:
- viewDistance setDetailMapBlendPars setTerrainGrid getObjectViewDistance setObjectViewDistance
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
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Operation Flashpoint: Elite: Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: System
- Command Group: Environment
- Scripting Commands: Local Effect