SSG3
Oh, THAT Youtuber...
Another LUA problem while trying to code a custom ice flower (and ice ball) powerup. This is the "TouchSpecial" hook which, when you collect an ice flower, enables you to fire ice balls with FIRENORMAL (or Ring Toss Normal in-game).
So, on with the code:
This gives me, when I load it in SRB2, "WARNING: iceflower.wad/LUA_ICEY: 29 (basically the last "end"): '<eof>' expected near "end". What should I do?
So, on with the code:
Code:
addHook("TouchSpecial", giveicepower(MT_ICEFLOWER, player), 1046)
for player in players.iterate
if player.mo
and not (player.spectator)
and not (player.pflags & PF_NIGHTSMODE)
and not (player.mo.state == S_PLAY_DIE)
if player.iceflowershoot == 0
player.iceflowershoot = 1
end
player.skincolor = SKINCOLOR_TEAL
end
end
end
This gives me, when I load it in SRB2, "WARNING: iceflower.wad/LUA_ICEY: 29 (basically the last "end"): '<eof>' expected near "end". What should I do?