How to make a lua

I need help with this lua for my character im working on:
addHook("PlayerThink", function(player)
If player.mo and player.mo.skin == "circuitmetal"
and player.mo.state == S_PLAY_FALL
and(player.cmd.buttons & BT_JUMP)
then player.mo.state = S_PLAY_JUMP
end
end
end)
Post automatically merged:

It's a recurl that makes you go into jump state after being launched by a spring
 

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

Back
Top