Arma 3 Scripting

surfaceTexture

  • Arma 3 v2.00

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