Garry's Mod Wiki

GM:OnEntityWaterLevelChanged

GM:OnEntityWaterLevelChanged

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

Description

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!

Arguments

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

Special Pages


Wikis

?

Render Time: 62ms

DB GetPage 43
Generate Html 4
SaveChanges (1) 6
Render Body 0
Render Sidebar 6