getTerrainGrid: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) 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 | {{Command | ||
| arma3 | | arma3 | ||
|1.60 | |1.60 | ||
|gr1= System | |gr1= System | ||
|gr2= Environment | |gr2= Environment | ||
| A getter for [[setTerrainGrid]], returns the current terrain grid. | | A getter for [[setTerrainGrid]], returns the current terrain grid. | ||
| '''getTerrainGrid''' | | '''getTerrainGrid''' | ||
| [[Number]] - terrain grid value | | [[Number]] - terrain grid value | ||
|x1= <code>_terrainGrid = [[getTerrainGrid]];</code> | |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> | };</code> | ||
| [[setTerrainGrid]], [[viewDistance]] | | [[setTerrainGrid]], [[viewDistance]] | ||
}} | }} |
Revision as of 00:40, 18 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