Page 1 of 1

Multiplayer Script:Own Research / Base and Peaceful Turrets.

Posted: Fri Feb 26, 2016 2:43 am
by StoneLegion
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

Re: Multiplayer Script:Own Research / Base and Peaceful Turrets.

Posted: Fri Feb 26, 2016 6:23 pm
by Rseding91
What "doesn't work" about it? Does it give an error?

Re: Multiplayer Script:Own Research / Base and Peaceful Turrets.

Posted: Fri Feb 26, 2016 9:18 pm
by StoneLegion
Rseding91 wrote:What "doesn't work" about it? Does it give an error?
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.