Osmo
Does not work with inland water. Works only with sea water.
Results appear below as you type; use the arrow keys to move through them.
Command · Markdown · JSON · original wiki page
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)
surfaceIsWater position
Parameters:
position: Position2D or Position3D - when using Position3D Z will be ignoredReturns: Boolean
private _result = surfaceIsWater [1000, 3000];
_isWater = surfaceIsWater position player;
surfaceType · surfaceNormal · nearRoads · roadsConnectedTo · roadAt · isOnRoad
Does not work with inland water. Works only with sea water.
The above note is not true in Arma 3. The command does detect pond objects and will return true if there is a pond object at that position. However, the object must have been loaded in memory (normally only true if the object is within the object view distance)