TehPuertoRicanSpartan Member Apr 5, 2021 #2 so basically you gotta Lua: addHook("PlayerThink", function(p) if (p.mo.skin == "yourskinnamehere") and (p.powers[pw_underwater]) --underwater code here end end)
so basically you gotta Lua: addHook("PlayerThink", function(p) if (p.mo.skin == "yourskinnamehere") and (p.powers[pw_underwater]) --underwater code here end end)
Jisk Member Apr 6, 2021 #3 TehPuertoRicanSpartan said: so basically you gotta Lua: addHook("PlayerThink", function(p) if (p.mo.skin == "yourskinnamehere") and (p.powers[pw_underwater]) --underwater code here end end) Click to expand... Oh thanks, I didn't realise it was in player powers.
TehPuertoRicanSpartan said: so basically you gotta Lua: addHook("PlayerThink", function(p) if (p.mo.skin == "yourskinnamehere") and (p.powers[pw_underwater]) --underwater code here end end) Click to expand... Oh thanks, I didn't realise it was in player powers.
CloneFighter Mediocre Lua scripter Apr 6, 2021 #4 Blur said: Oh thanks, I didn't realise it was in player powers. Click to expand... Actually, it has a flag too and (p.powers[pw_underwater]) can be and p.mo.eflags & MFE_UNDERWATER
Blur said: Oh thanks, I didn't realise it was in player powers. Click to expand... Actually, it has a flag too and (p.powers[pw_underwater]) can be and p.mo.eflags & MFE_UNDERWATER
Jisk Member Apr 6, 2021 #5 antonretrojr said: Actually, it has a flag too and (p.powers[pw_underwater]) can be and p.mo.eflags & MFE_UNDERWATER Click to expand... Oh. Thanks for telling me
antonretrojr said: Actually, it has a flag too and (p.powers[pw_underwater]) can be and p.mo.eflags & MFE_UNDERWATER Click to expand... Oh. Thanks for telling me