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:
position: Position2D or Position3D - when using Position3D Z will be ignored
Returns: Boolean
Examples
Example 1
private _result = surfaceIsWater [1000, 3000];
Example 2
_isWater = surfaceIsWater position player;
See also
surfaceType · surfaceNormal · nearRoads · roadsConnectedTo · roadAt · isOnRoad