Sls64LGamingBro
An ordinary coder...
I'm trying to keep the bubble shield from drowning. And I don't know how it works exactly, I've used
I'll show you the code if anything is wrong with this. You can help me adjust the code.
SH_PROTECTWATER
so that it can work with p.powers[pw_underwater]
.I'll show you the code if anything is wrong with this. You can help me adjust the code.
Code:
addHook("PlayerThink", function(p)
if (p.powers[pw_shield] & SH_PROTECTWATER)
p.powers[pw_underwater] = 0
end
end)