getTerrainGrid: Difference between revisions

From Bohemia Interactive Community
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 |= Description
| Returns the current terrain grid |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


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


| [[Number]] |= Return value
| [[Number]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>_terrainGrid = [[getTerrainGrid]];</code> |= Example 1
|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> |= Example 2
};</code> |EXAMPLE2=


____________________________________________________________________________________________
____________________________________________________________________________________________


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


}}
}}

Revision as of 15:40, 7 April 2019

Hover & click on the images for description

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