Forums » General Questions » Separate player mods using Lua in gameplay

1
I am trying to figure out how to have players have separate mods in gameplay using a Lua file instead of attacks. Is there any way I could do this using the Lua file grabbed from here?

Reply
I might be wrong but you can use:

if GAMESTATE:IsPlayerEnabled(PLAYER_1) then
--your P1 code
end

if GAMESTATE:IsPlayerEnabled(PLAYER_2) then
--your P2 code
end
~Santikun
Reply