Arma 3 Scripting

Command in System, Environment

setViewDistance

Also available as Markdown and JSON, or read the original wiki page.

Description

Set rendering distance. Setting view distance to <= 0 resets the value to the client's options (set in Options → Video → General → Visibility → Overall).

Note

In previous versions, client's max view distance was limited by the server's view distance.

Important

View distance also defines the maximum distance between a unit and any other unit they can know about. Higher view distance will involve more AI simulation cycles for every unit, which causes low performance. See Arma 3: Performance Optimisation.

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 15000
Operation Flashpoint 500 500 900 5000 5000

Syntax

setViewDistance distance

Parameters:

Returns: Nothing

Examples

Example 1

setViewDistance 2250;

Example 2

setViewDistance -1; // reset view distance in Arma 3

See also

viewDistance · setDetailMapBlendPars · setTerrainGrid · getObjectViewDistance · setObjectViewDistance