getTerrainGrid: Difference between revisions
Jump to navigation
Jump to search
m (Add missing scripting commands category) |
m (template:command argument fix) |
||
Line 6: | Line 6: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Returns the current terrain grid |= | | Returns the current terrain grid |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| '''getTerrainGrid''' |= | | '''getTerrainGrid''' |SYNTAX= | ||
| [[Number]] |= | | [[Number]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>_terrainGrid = [[getTerrainGrid]];</code> |= | |x1= <code>_terrainGrid = [[getTerrainGrid]];</code> |EXAMPLE1= | ||
|x2= <code>[[if]] ([[getTerrainGrid]] < 50) [[then]] | |x2= <code>[[if]] ([[getTerrainGrid]] < 50) [[then]] | ||
{ | { | ||
[[hint]] "Grass is enabled"; | [[hint]] "Grass is enabled"; | ||
};</code> |= | };</code> |EXAMPLE2= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[setTerrainGrid]], [[viewDistance]] |= | | [[setTerrainGrid]], [[viewDistance]] |SEEALSO= | ||
}} | }} |
Revision as of 14:40, 7 April 2019
Description
- Description:
- Returns the current terrain grid
- Groups:
- Uncategorised
Syntax
- Syntax:
- getTerrainGrid
- Return Value:
- Number
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