Arma 3 Scripting

Command in Positions

surfaceTexture

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

Description

Same as surfaceType, but returns texture path to ground texture as string.

Note

The texture returned is of the ground, even if there is a road at that position. To get road texture use getRoadInfo command.

Syntax

surfaceTexture [x, y, useLayerMask]

Parameters:

Returns: String - Surface texture

Examples

Example 1

private _groundTexture = surfaceTexture getPosATL player;

Example 2

private _pos = getPosATL player;
_pos set [2, true]; // use layer mask
private _groundTexture = surfaceTexture _pos;

See also

surfaceType · getRoadInfo