{"name":"setTerrainGrid","operator":null,"title":"setTerrainGrid","type":"command","url":"https://community.bistudio.com/wiki/setTerrainGrid","revid":364727,"updated":"2024-05-30T11:49:11Z","groups":["System","Environment"],"status":"ok","replaced_by":[],"games":[{"game":"ofp","name":"Operation Flashpoint","version":"1.75"},{"game":"ofpe","name":"Operation Flashpoint: Elite","version":"1.00"},{"game":"arma1","name":"Armed Assault","version":"1.00"},{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"ofp","name":"Operation Flashpoint","version":"1.75"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":"local","server_exec":false},"exec":null,"description":"Sets the desired terrain resolution in meters.","syntaxes":[{"syntax":"setTerrainGrid grid","since":null,"effect":null,"exec":null,"params":[{"name":"grid","type":"Number","optional":false,"default":null,"description":"for default landscapes the supported resolutions are:\n\n- **50** - smoothest, less lag\n- **25** - default in multiplayer\n- **12.5** - default in single player\n- **6.25**\n- **3.125** - bumpiest, higher lag\n\n> [!NOTE]\n> If unsupported resolution is selected, the nearest supported resolution is used instead. 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. In older games like Armed Assault terrain resolution is fixed, determined by the world created.","types":["Number"],"since":null,"text":"grid: Number - for default landscapes the supported resolutions are:\n\n- **50** - smoothest, less lag\n- **25** - default in multiplayer\n- **12.5** - default in single player\n- **6.25**\n- **3.125** - bumpiest, higher lag\n\n> [!NOTE]\n> If unsupported resolution is selected, the nearest supported resolution is used instead. 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. In older games like Armed Assault terrain resolution is fixed, determined by the world created."}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"unary","operator":null,"left":null,"right":{"text":"grid","types":["Number"]}}],"examples":[{"text":"```sqf\nsetTerrainGrid 12.5;\n```","code":["setTerrainGrid 12.5;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["getTerrainGrid","setViewDistance","viewDistance","setDetailMapBlendPars","getObjectViewDistance","setObjectViewDistance"],"notes":[{"user":"Hardrock","date":"2006-08-04T12:02:00Z","text":"*Notes from before the conversion:*\n\nThis is like opening up your video preferences and changing \"terrain detail\", i.e.: setTerrainGrid 50 = lowest detail\nsetTerrainGrid 3.125 = highest detail It is similar to the command setViewDistance."},{"user":"WGL.Q","date":"2007-08-18T09:46:00Z","text":"*Effects on grass:*\n- 50: disables/removes grass altogether.\n- 25: grass is visible.\n- Lower values make grass drawn a bit further at distance. However the effect is decreasing rapidly: Grass radius of 25 is 100%. 12.5 is now like 100% + 20%,  6.25 is like 100% + 20% + 5% and 3.125 is  100% + 20% + 5% + 1%. Note these are estimates!\n\n[Demo Mission Test_VD_TD.Sara.rar](http://ofpc.de/wargames//files/arma/biki/Test_VD_TD.Sara.rar): ViewDistance and TerrainGrid can be changed via RadioTriggers"},{"user":"Rommel","date":"2019-12-15T05:50:00Z","text":"*Arma 2 Supported Reso:*\n\nIn Arma 2 you are not stuck to 50, 25, 12 etc. 45 is a lower setting than 25!"},{"user":"Galzohar","date":"2013-03-13T17:05:00Z","text":"*Arma 3 Multiplayer default:*\n\nSome testing indicates that the default value for Arma 3 multiplayer is 10 - just like before. 10 is between \"Normal\" and \"High\".\n\nAn user's terrain detail setting is ignored in multiplayer just like in Arma 2."},{"user":"MrPineapple","date":"2014-11-19T17:44:00Z","text":"**TerrainGrid values for Arma 3 1.34:**\n\nLow = 50 (NoGrass)\n\nStandard = 25\n\nHigh = 12.5\n\nVery High = 6.25\n\nUltra = 3.125"}],"categories":["ArmA: Armed Assault: Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Environment","Command Group: System","Introduced with Operation Flashpoint version 1.75","Operation Flashpoint: Elite: Scripting Commands","Operation Flashpoint: New Scripting Commands","Operation Flashpoint: Scripting Commands","Scripting Commands","Scripting Commands: Local Effect","Take On Helicopters: Scripting Commands"]}