getTerrainGrid: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)]]" to "{{GameCategory|arma3|Scripting Commands}}") |
Lou Montana (talk | contribs) 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
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