IfWaterLevel

From ZDoom Wiki
Revision as of 14:40, 2 May 2017 by Blue Shadow (talk | contribs) (Remove {{new}})
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

IfWaterLevel [not] <value>


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.

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...
}