chipakpaka
Member
i am trying to make an ability similar to the melee attack amy uses, but my script isn't working.
that is the code i made, and when i load it in the game it doesn't show any errors, but it doesn't do anything either. what should i do?
Lua:
addHook("SpinSpecial", function(player)
for p in players.iterate
if (p.mo.skin == "notTellingYou")
if (p.cmd.buttons & BT_SPIN)
p.momy = p.mindash*FRACUNIT
p.momz = p.mindash*FRACUNIT
end
end
end
end)
that is the code i made, and when i load it in the game it doesn't show any errors, but it doesn't do anything either. what should i do?