Original Post — Direct link

Hi people!
Today I'll be admin at a pvp event in factorio and we were curious:

is there a command of any sort to change any player's team?

For example when a person chooses for team A but because of rules that person should be in team B is there a command to easily change that player's team?

And if not could it please be added in (for example) the /admin UI

Thx in advance :D

External link →
over 5 years ago - /u/Klonan - Direct link

You can arrange the teams before the event starts now, but this will still be useful for if someone joins half way through.

There is a internal function set_player(player, team, mute)

So the function will look something like this

/c set_player(game.players["Klonan"], global.pvp.config.teams[1], false)

The number of the team is determined by the order in the setup GUI. If the last parameter mute is set to true, then it won't print a message when the player is set to the team.






Recent Factorio Posts