Arma 3 Scripting

Command in Positions

surfaceType

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns what surface type is at the given position. For surface texture see surfaceTexture command.

Note

The command returns surface type of the ground, even underneath objects such as buildings and roads

Syntax

surfaceType [x, y, z or useLayerMask]

Parameters:

Returns: String - Surface type

Examples

Example 1

private _surface = surfaceType [4500, 4500];

Example 2

hint surfaceType getPosWorld player;

Example 3

private _pos = getPosWorld player;
_pos set [2, true]; // use layer mask
surfaceType _pos;

See also

surfaceTexture · surfaceIsWater · surfaceNormal · getAllEnvSoundControllers