Arma 3 Scripting

Command in Positions

surfaceIsWater

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

Description

Returns whether there is water at given position. In Arma 3, it also detects pond objects, but only if they are loaded in memory (normally only true if the objects are within the object view distance)

Syntax

surfaceIsWater position

Parameters:

Returns: Boolean

Examples

Example 1

private _result = surfaceIsWater [1000, 3000];

Example 2

_isWater = surfaceIsWater position player;

See also

surfaceType · surfaceNormal · nearRoads · roadsConnectedTo · roadAt · isOnRoad