Need help with Command Line
Posted: Fri Jun 03, 2016 6:33 pm
I have been looking into making a server where me and my Friends can play in two separate teams, whit no locked chest or machines only separate reasearch. But I simply can`t get it to work, any help appriciated.
I found this on another forum: viewtopic.php?f=33&t=14466 -All creds to him. (I`m sorry I can`t post Url`s in my first post
The perfect scenario would be this only with two on each team. Can anyone fix this?
Thank in advance!
And.. sorry for my English

I found this on another forum: viewtopic.php?f=33&t=14466 -All creds to him. (I`m sorry I can`t post Url`s in my first post

This will make it so you have your own research, map, radars, etc. Also makes it so Turrets don't shoot each other!
/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
The perfect scenario would be this only with two on each team. Can anyone fix this?
Thank in advance!

And.. sorry for my English
