How do I change the team?
How do I change the team?
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
My native language is russian. Sorry if my messages are difficult to read.
-
- Fast Inserter
- Posts: 119
- Joined: Fri Jun 17, 2016 8:17 pm
- Contact:
Re: How do I change the team?
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.
>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?
Thank you!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.
My native language is russian. Sorry if my messages are difficult to read.
Re: How do I change the team?
How do i change team in a running game from green to purple team f.e.?
Re: How do I change the team?
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.
Btw closing a team would be useful too.