Garry's Mod Wiki

Entity:WaterLevel

number 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

1 number
The water level.

Page Links


Special Pages


Wikis

?

Render Time: 48ms

DB GetPage 3
Generate Html 2
SaveChanges (1) 24
Render Body 0
Render Sidebar 16