I have this command here which can change the number of coins needed for 100 coin star.
It works for the player running the command (the host for example), however when I use player 2 and collect some coins, the star doesn't appear.
It works for the player running the command (the host for example), however when I use player 2 and collect some coins, the star doesn't appear.
LUA:
function coin(n)
gLevelValues.coinsRequiredForCoinStar = tonumber(n)
return true
end
hook_chat_command("coin", "[number] - Change number of coins needed for 100 coin star", coin)