2.1 Lua Help

Tythestickman

Tythestickman

Well-known member
im working on an addon that backports Fang to 2.1 and im having a hard time coding him in, i tried anything i could to try and make it work but it just kept giving dumb errors, i need someone to help me.
Code:
addHook("MobjThinker", function(mobj)
    local player = mobj.player     

    if (mobj.skin == "fang") then
        
    if (player.pflags & PF_JUMPDOWN)
            

            if (player.mo.z <= player.mo.floorz) then
                
                player.mobj.momz = 15*FRACUNIT
            end
        end
    end
end)
 
wow i just got steam-rolled with this thread 💀
 
Top