Revision Difference
Entity:WaterLevel#547379
<function name="WaterLevel" parent="Entity" type="classfunc">
<description>
Returns an integer that represents how deep in water the entity is.
⤶
⤶
* **0** - The entity isn't in water.
<note>This function will currently work on players only due to the way it is implemented in the engine. If you need to check interaction with water for regular entities you better use <page>util.PointContents</page>.</note>⤶
⤶
* **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.
</description>
<realm>Shared</realm>
<rets>
<ret name="" type="number">The water level.</ret>
</rets>
</function>