surfaceIsWater

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Armed Assault version 1.00
  

Click on the images for descriptions

Introduced in

Game:
Armed Assault
Version:
1.00

Description

Description:
Returns whether water is at given position.

Syntax

Syntax:
surfaceIsWater position
Parameters:
position: Array - format Position2D or Position3D in which case Z will be ignored
Return Value:
Boolean

Examples

Example 1:
_isWater= surfaceIsWater [1000, 3000];
Example 2:
_isWater = surfaceIsWater position player;

Additional Information

Multiplayer:
-
See also:
surfaceTypesurfaceNormalnearRoadsroadsConnectedToroadAtisOnRoad

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Posted on 4 May, 2012
Osmo
Does not work with inland water. Works only with sea water.

Bottom Section