Revision Difference
GM:OnEntityWaterLevelChanged#526686
<function name="OnEntityWaterLevelChanged" parent="GM" type="hook">
<ishook>yes</ishook>
<description>Called when the <page>Entity:WaterLevel</page> of an entity is changed.
⤶
<warning>This hook can be considered a physics callback, so changing collision rules (<page>Entity:SetSolidFlags</page>) in it may lead to a crash!</warning>⤶
</description>
<realm>Server</realm>
<added>2020.03.17</added>
<predicted>No</predicted>
<args>
<arg name="entity" type="Entity">The entity</arg>
<arg name="old" type="number">Previous water level</arg>
<arg name="new" type="number">The new water level</arg>
</args>
</function>