Added the ability to have "friend" forces. Howto

Arrange meetings with other people to play MP, announce your servers.
Post Reply
l4m3r
Burner Inserter
Burner Inserter
Posts: 16
Joined: Sat Jul 18, 2015 11:31 am
Contact:

Added the ability to have "friend" forces. Howto

Post by l4m3r »

Added the ability to have "friend" forces. Friend forces are given unrestricted access to buildings and won't be attacked.


From patch Notes but how to do this? Can you post pls the command for it?

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5150
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Added the ability to have "friend" forces. Howto

Post by Klonan »

l4m3r wrote:Added the ability to have "friend" forces. Friend forces are given unrestricted access to buildings and won't be attacked.


From patch Notes but how to do this? Can you post pls the command for it?
http://lua-api.factorio.com/latest/LuaF ... set_friend

Also check PvP scenario for some example usage

l4m3r
Burner Inserter
Burner Inserter
Posts: 16
Joined: Sat Jul 18, 2015 11:31 am
Contact:

Re: Added the ability to have "friend" forces. Howto

Post by l4m3r »

Îts like this?
/c game.forces["forcename"].get_friend("forcename")?

Edit: found it out its
/c game.forces["forcename"].set_friend("forcename", true)
works great for all the volks who want to trade with other ones...

Post Reply

Return to “Multiplayer”