I usually go for a slightly simply syntax:For what it's worth, this page explains the values for waterlevel:
https://zdoom.org/wiki/Swimming#Waterlevel
However, I note that the original query says "I want it to disappear if it hits water", although the title says "in water". So, if peewee_RotA wants the projectile to disappear when it hits regular non-deep water (like the liquids in vanilla Doom maps) I don't think waterlevel will help.
Code:
FLRE A 0 A_JumpIf(waterlevel > 0, "Spent"); //jump straight to spent if under water
https://zdoom.org/wiki/Swimming#Waterlevel
However, I note that the original query says "I want it to disappear if it hits water", although the title says "in water". So, if peewee_RotA wants the projectile to disappear when it hits regular non-deep water (like the liquids in vanilla Doom maps) I don't think waterlevel will help.
Statistics: Posted by Enjay — Thu May 08, 2025 3:21 am