New Faction Added.
Posted: Mon Aug 03, 2015 2:23 pm
I heard in 0.12 you can now properly create a 2nd third fourth etc faction. This way you have your own research etc.
This is not much of a PvP Mod though I assume could be used just as a PvP Mod.
I would like it so when I host I'm on team1 and if my friend joins he is on team2 pretty much. So we have our own you know team.. I have no clue if there is a way to switch off turret damage to other team members as well. As we are playing separate teams but coop as in building a train network etc to each other.
It has been created Thanks to akhiros!
This will make it so you have your own research, map, radars, etc. Also makes it so Turrets don't shoot each other!
This is not much of a PvP Mod though I assume could be used just as a PvP Mod.
I would like it so when I host I'm on team1 and if my friend joins he is on team2 pretty much. So we have our own you know team.. I have no clue if there is a way to switch off turret damage to other team members as well. As we are playing separate teams but coop as in building a train network etc to each other.
It has been created Thanks to akhiros!
This will make it so you have your own research, map, radars, etc. Also makes it so Turrets don't shoot each other!
Code: Select all
/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, true); force.set_cease_fire(pforce.name, true) end; pforces[#pforces+1] = force end