Page 1 of 1

How do I change the team?

Posted: Fri Jul 22, 2016 7:05 pm
by WIZ4
How do I change the team? At 0.12 this command to work "game.get_player('WIZ4').force = game.forces['neutral']". In 0.13 it did not work

Re: How do I change the team?

Posted: Fri Jul 22, 2016 9:48 pm
by zebediah49
As of 0.13 --

>Removed game.get_player() and game.get_surface(): game.players[] and game.surfaces[] can be used instead.

So, `game.players['WIZ4'].force = game.forces['neutral']` is the new replacement.

Re: How do I change the team?

Posted: Sat Jul 23, 2016 11:52 am
by WIZ4
zebediah49 wrote:As of 0.13 --

>Removed game.get_player() and game.get_surface(): game.players[] and game.surfaces[] can be used instead.

So, `game.players['WIZ4'].force = game.forces['neutral']` is the new replacement.
Thank you!

Re: How do I change the team?

Posted: Fri Aug 25, 2017 9:29 am
by Pascali
How do i change team in a running game from green to purple team f.e.?

Re: How do I change the team?

Posted: Thu Dec 12, 2019 11:09 pm
by Mgis09
Is there any command now (0.17.79) to move somebody to another team, or at least kick him into spectator or lobby?
Btw closing a team would be useful too.