Codes to allien attack?

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Post Reply
Airat9000
Smart Inserter
Smart Inserter
Posts: 1418
Joined: Fri Mar 28, 2014 12:32 am
Contact:

Codes to allien attack?

Post by Airat9000 »

/c game.peacefulmode = false

/c game.peacefulmode = true

not work((

Boogieman14
Filter Inserter
Filter Inserter
Posts: 770
Joined: Sun Sep 07, 2014 12:59 pm
Contact:

Re: Codes to allien attack?

Post by Boogieman14 »

/c game.peaceful_mode = true

Which actually took me all of half a minute to find on the wiki...
I don't have OCD, I have CDO. It's the same, but with the letters in the correct order.

mooop12
Burner Inserter
Burner Inserter
Posts: 11
Joined: Fri Aug 22, 2014 8:05 am
Contact:

Re: Codes to allien attack?

Post by mooop12 »

/c game.peaceful_mode = true
/c game.forces.enemy.kill_all_units()

Existing enemies won't change from peaceful to not peaceful and vice-versa, you have to kill them.

User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: Codes to allien attack?

Post by prg »

... and in case you're still on 0.11, game.peacefulmode is correct and you need to /c game.killallenemies() for it to take effect.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!

Airat9000
Smart Inserter
Smart Inserter
Posts: 1418
Joined: Fri Mar 28, 2014 12:32 am
Contact:

Re: Codes to allien attack?

Post by Airat9000 »

prg wrote:... and in case you're still on 0.11, game.peacefulmode is correct and you need to /c game.killallenemies() for it to take effect.
0.12.5 thanks

Airat9000
Smart Inserter
Smart Inserter
Posts: 1418
Joined: Fri Mar 28, 2014 12:32 am
Contact:

Re: Codes to allien attack?

Post by Airat9000 »

prg wrote:... and in case you're still on 0.11, game.peacefulmode is correct and you need to /c game.killallenemies() for it to take effect.
and question
code to regenerate resources?

Post Reply

Return to “Gameplay Help”