getTerrainGrid: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma3 |Game name=
| arma3


|1.60|Game version=
|1.60


|gr1= System |GROUP1=
|gr1= System


|gr2= Environment |GROUP2=
|gr2= Environment


| A getter for [[setTerrainGrid]], returns the current terrain grid. |DESCRIPTION=
| A getter for [[setTerrainGrid]], returns the current terrain grid.


| '''getTerrainGrid''' |SYNTAX=
| '''getTerrainGrid'''


| [[Number]] - terrain grid value |RETURNVALUE=
| [[Number]] - terrain grid value
   
   
|x1= <code>_terrainGrid = [[getTerrainGrid]];</code> |EXAMPLE1=
|x1= <code>_terrainGrid = [[getTerrainGrid]];</code>


|x2= <code>[[if]] ([[getTerrainGrid]] < 50) [[then]]
|x2= <code>[[if]] ([[getTerrainGrid]] < 50) [[then]]
{
{
   [[hint]] "Grass is enabled";
   [[hint]] "Grass is enabled";
};</code> |EXAMPLE2=
};</code>




| [[setTerrainGrid]], [[viewDistance]] |SEEALSO=
| [[setTerrainGrid]], [[viewDistance]]


}}
}}

Revision as of 00:40, 18 January 2021

Hover & click on the images for description

Description

Description:
A getter for setTerrainGrid, returns the current terrain grid.
Groups:
SystemEnvironment

Syntax

Syntax:
getTerrainGrid
Return Value:
Number - terrain grid value

Examples

Example 1:
_terrainGrid = getTerrainGrid;
Example 2:
if (getTerrainGrid < 50) then { hint "Grass is enabled"; };

Additional Information

See also:
setTerrainGridviewDistance

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