Multiplayer Script:Own Research / Base and Peaceful Turrets.

Place to get help with not working mods / modding interface.
Post Reply
Kane
Filter Inserter
Filter Inserter
Posts: 666
Joined: Fri Sep 05, 2014 7:34 pm
Contact:

Multiplayer Script:Own Research / Base and Peaceful Turrets.

Post by Kane »

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

Rseding91
Factorio Staff
Factorio Staff
Posts: 13223
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post by Rseding91 »

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.

Kane
Filter Inserter
Filter Inserter
Posts: 666
Joined: Fri Sep 05, 2014 7:34 pm
Contact:

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

Post by Kane »

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.

Post Reply

Return to “Modding help”