Water Detection (LUA)

so basically you gotta
Lua:
addHook("PlayerThink", function(p)
    if (p.mo.skin == "yourskinnamehere") and (p.powers[pw_underwater])
        --underwater code here
    end
end)
 

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top