IfWaterLevel
Executes the following sub block if the player's waterlevel is greater than or equal to value. If not is provided, the check is inverted, and the sub block is executed if the player's waterlevel is less than value.
IfWaterLevel [not] <value>
Examples
This block of code is executed if the player is completely submerged in water.
IfWaterLevel 3 { // commands... }
This one, however, is executed if the player is not submerged at all.
IfWaterLevel not 1 { // commands... }
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.