SpinSlash165
speeeeeeeen
Hello! This might be a weird question, but I'm having a few issues with Lua.
I've set up a code that switches my character's CA from DOUBLEJUMP to TWINSPIN by pressing Spin while airborne - which works as intended - but my problem is that I have to press Spin a second time to get the Twinspin ability itself to actually activate.
I've tried setting flags like PF_THOKKED or PF_JUMPED, but nothing seems to be working. Is there a way to set it to activate on the initial press of Spin?
Here is this block's code for reference:
I'm not overly familiar with Lua, so there's a good chance I'm missing something important. Still, any help is appreciated!
I've set up a code that switches my character's CA from DOUBLEJUMP to TWINSPIN by pressing Spin while airborne - which works as intended - but my problem is that I have to press Spin a second time to get the Twinspin ability itself to actually activate.
I've tried setting flags like PF_THOKKED or PF_JUMPED, but nothing seems to be working. Is there a way to set it to activate on the initial press of Spin?
Here is this block's code for reference:
Code:
if player.spintapping and not P_IsObjectOnGround(player.mo) then
player.charability = CA_TWINSPIN
elseif P_IsObjectOnGround(player.mo) then
player.charability = CA_DOUBLEJUMP
end
Last edited: