Page 1 of 1

Added the ability to have "friend" forces. Howto

Posted: Tue Jun 20, 2017 9:28 am
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?

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

Posted: Tue Jun 20, 2017 9:41 am
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

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

Posted: Tue Jun 20, 2017 11:09 am
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...