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)
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)