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



Introduced in

Version:1.50

Description

Description:

Checks whether the given object is immersed (even partially) in water.

If the object is positioned on a shore position that is only temporarily covered in water (whenever a wave comes in), the returned value may not be fully accurate.

Note: Only works for units and vehicles, but not for any other objects.

Syntax

Syntax:isTouchingWater object
Parameters:
  • object: Object - Object to check.
Return Value:Boolean - If true, then the object is immersed in water.

Examples

Examples:
_ImWet = isTouchingWater player

Additional Information

See also: surfaceIsWater, isOnRoad
Multiplayer: 
Problems: 

Notes