Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.00

Description

Description:Returns the surface type for a given position.

The surface evaluated is the lowest possible at that position, so even when inside a building, "#GrassGeneral" might be returned, or, if in water, it might be "#SandGeneral".

The possible surface types depend on what is defined for the current map. Specific maps can have unique surfaces that do not exist anywhere else (for example, "#map_afghangeotypical25km_rockslope"). The list of possible surfaces is defined in CfgSurfaces.

Syntax

Syntax:surfaceType position
Parameters:
Return Value:String

Examples

Examples:
_surface = surfaceType (getPos player)

Additional Information

See also: CfgSurfaces, isOnRoad, surfaceIsWater, underlyingSurface
Multiplayer:
Problems:

Notes