Warning: file_put_contents(/ff_e178549f6bb0f023785ada2694032ded84cf2fa4db8d4571.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
setTerrainGrid - OFPEC Scripting Command Reference | OFPEC The Editing Center

setTerrainGrid grid

Operand types

grid: Number

Type of returned value


Operation Flashpoint, VBS1: Set desired terrain resolution (in meters).

For default landscapes, supported resolutions are:
50 - Smoothest, less lag
25 - Default in Multiplayer
12.5 - Default in Singleplayer
3.125 - Bumpiest, higher lag

If you select unsupported resolution, nearest supported value is used instead.

Armed Assault, VBS2: Terrain resolution is fixed, determined by the world created.
This function controls terrain LOD instead (the distance in which the terrain mesh resolution starts to degrade).
Higher number means less vertices are used for terrain rendering, making distant hills less smooth.
Value 12.5 corresponds to selecting Terrain Detail Normal in Video options, 50 to Very Low, 3.125 to Very High.

Used In



setTerrainGrid 12.5