HitWater
bool HitWater(sector sec, Vector3 pos[, bool checkabove[, bool alert[, bool force]]])
Note: This feature is for ZScript only. |
Usage
Checks if the given sector has liquid terrain. If so, spawns a splash at the position.
Parameters
- 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.
Examples
![]() |
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. |
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.