Quantcast
Channel: ZDoom
Viewing all articles
Browse latest Browse all 3391

Scripting • Re: Non bounce projectile disappear in water

$
0
0
I usually go for a slightly simply syntax:

Code:

FLRE A 0 A_JumpIf(waterlevel > 0, "Spent"); //jump straight to spent if under water
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.

Statistics: Posted by Enjay — Thu May 08, 2025 3:21 am



Viewing all articles
Browse latest Browse all 3391

Trending Articles