From ZDoom Wiki
Jump to navigation Jump to search
Note: This feature is for ZScript only.

bool UpdateWaterLevel([bool splash])


Updates the Actor's water level. Also handles diving and surfacing sounds if the Actor is a player. Usually called after the Actor moved.


  • splash - True by default. If true, create a splash if the Actor hit liquid.

Return value

Returns false if the splash was already handled. Always returns false since splashing is handled by the splash flag.


Nuvolachalk.png Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated.