Arma 3 Scripting

surfaceType

  • Arma 3 v0.50
  • First in Operation Flashpoint: Elite v1.00

Command · Markdown · JSON · 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