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

bool HitWater(sector sec, Vector3 pos[, bool checkabove[, bool alert[, bool force]]])


Checks if the given sector has liquid terrain. If so, spawns a splash at the position.


  • sec - The sector to check.
  • pos - The 3D position to check at. This is not relative to the Actor. Also spawns the splash at this location.
  • checkabove - False by default. If true, don't spawn the splash if the position is above the center of the Actor.
  • alert - True by default. If true, non-small splashes will alert enemies.
  • force - False by default. If true, check the terrain for the specified sector and ignore any 3D sectors that belong to it.

Return value

Returns true if the sector has liquid terrain.


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.