Glide landing

Shanon

Member
hi, someone know how to do the landing state but with a custom state?
example: k.t.e do the glide and stop and landing on the floor there him trigger 1 new state.

my code but dont work:

addHook("PlayerThink", function(player)
if player.mo.skin == "sonic"
and (player.mo.state == S_KYU)
and P_IsObjectOnGround(player.mo)
and (player.mo.eflags & MFE_ONGROUND)
player.mo.state = S_FLOOR
end
end)
 

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

Back
Top