Entity:WaterLevel

From Garry's Mod
Jump to: navigation, search
 Entity:WaterLevel( )

Description

Returns an integer that represents how deep in water the entity is.


  • 0 - The entity isn't in water.
  • 1 - Slightly submerged (at least to the feet).
  • 2 - The majority of the entity is submerged (at least to the waist).
  • 3 - Completely submerged.

Returns

number

The water level.
Personal tools
Navigation