Hello, SlasherTH here. Can I please get help with this Shadow wad I'm porting to 2.1?? I wanted skating sounds when walking and running, I got running, but I can't get walking. When I load up the lua for the skating sounds when walking on SRB2 it says this:
WARNING: shadow2.1.wad|LUA_WALK:45: unexpected symbol near ')'
Here's the lua, where did I mess up?
addHook("ThinkFrame", do
if (player.mo and player.mo.skin == "shadow")
and (player.panim == PA_WALK)
and player.mo and player.mo.valid and player.health
and not (player.powers[pw_super])
if mo and P_IsObjectOnGround(mo) then
if (mo.state==S_PLAY_RUN3) or (mo.state==S_PLAY_SPD4)
S_StartSound(mo, sfx_skate1)
end
end
if (mo.state==S_PLAY_RUN7) or (mo.state==S_PLAY_SPD2)
S_StartSound(mo, sfx_skate2)
end
end
end
end
end
end)
WARNING: shadow2.1.wad|LUA_WALK:45: unexpected symbol near ')'
Here's the lua, where did I mess up?
addHook("ThinkFrame", do
if (player.mo and player.mo.skin == "shadow")
and (player.panim == PA_WALK)
and player.mo and player.mo.valid and player.health
and not (player.powers[pw_super])
if mo and P_IsObjectOnGround(mo) then
if (mo.state==S_PLAY_RUN3) or (mo.state==S_PLAY_SPD4)
S_StartSound(mo, sfx_skate1)
end
end
if (mo.state==S_PLAY_RUN7) or (mo.state==S_PLAY_SPD2)
S_StartSound(mo, sfx_skate2)
end
end
end
end
end
end)