Garry's Mod Wiki

Garry's Mod Wiki

  GM:OnEntityWaterLevelChanged( Entity entity, number old, number new )


Called when the Entity:WaterLevel of an entity is changed.

This hook can be considered a physics callback, so changing collision rules (Entity:SetSolidFlags) in it may lead to a crash!


1 Entity entity
The entity.
2 number old
Previous water level.
3 number new
The new water level.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...