This use to work but does not seem to work anymore.
/c local pforces = {}; for _, player in ipairs(game.players) do local fname = "player_" .. player.name; local force = game.forces[fname] or game.create_force(fname); player.force = force; for _, pforce in ipairs(pforces) do pforce.set_cease_fire(force.name, false); force.set_cease_fire(pforce.name, false) end; pforces[#pforces+1] = force end
Multiplayer Script:Own Research / Base and Peaceful Turrets.
Re: Multiplayer Script:Own Research / Base and Peaceful Turrets.
What "doesn't work" about it? Does it give an error?
If you want to get ahold of me I'm almost always on Discord.
Re: Multiplayer Script:Own Research / Base and Peaceful Turrets.
I should update this since. It works now we had to use it like 2-3 times. When we lost one of our 4 players (went to bed) I did it again and seem to work. When we get all 4 on again I will try again but what was happening was the turrets would fire at each other and that is not suppose to be the case.Rseding91 wrote:What "doesn't work" about it? Does it give an error?
Community: http://StoneLegion.com
Youtube: http://YouTube.com/StoneLegion
Stream: http://Twitch.tv/StoneLegion
Steam: http://SteamCommunity.com/id/KaneHart
Youtube: http://YouTube.com/StoneLegion
Stream: http://Twitch.tv/StoneLegion
Steam: http://SteamCommunity.com/id/KaneHart