getTerrainGrid: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)]]" to "{{GameCategory|arma3|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
| arma3 |Game name=
Line 9: Line 8:


|gr2= Environment |GROUP2=
|gr2= Environment |GROUP2=
____________________________________________________________________________________________


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


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


| [[Number]] - terrain grid value |RETURNVALUE=
| [[Number]] - terrain grid value |RETURNVALUE=
____________________________________________________________________________________________
   
   
|x1= <code>_terrainGrid = [[getTerrainGrid]];</code> |EXAMPLE1=
|x1= <code>_terrainGrid = [[getTerrainGrid]];</code> |EXAMPLE1=
Line 26: Line 22:
};</code> |EXAMPLE2=
};</code> |EXAMPLE2=


____________________________________________________________________________________________


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

Revision as of 01:34, 17 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