is there a way to turn off monsters attacking you

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
elkar
Inserter
Inserter
Posts: 47
Joined: Thu Feb 20, 2014 7:39 am
Contact:

Re: is there a way to turn off monsters attacking you

Post by elkar »

So are there spawned bitters right from the start?
¨
If I want easier early game, can I at the start of the game turn peaceful mode on and then make them attack just by turning ot off?

I mean i dont want to go into peaceful mode and then having to go around and kill tons of passive bitters for agressive to even spawn.
Zeblote
Filter Inserter
Filter Inserter
Posts: 973
Joined: Fri Oct 31, 2014 11:55 am
Contact:

Re: is there a way to turn off monsters attacking you

Post by Zeblote »

elkar wrote:So are there spawned bitters right from the start?
¨
If I want easier early game, can I at the start of the game turn peaceful mode on and then make them attack just by turning ot off?

I mean i dont want to go into peaceful mode and then having to go around and kill tons of passive bitters for agressive to even spawn.
You can start the game with peaceful mode and disable it later on with these commands:

/c game.peaceful_mode = false
/c game.forces["enemy"].kill_all_units()
michalus
Burner Inserter
Burner Inserter
Posts: 6
Joined: Sun Jul 10, 2016 11:01 am
Contact:

Re: is there a way to turn off monsters attacking you

Post by michalus »

hello,
somehow this does not seem to work in experimental version 13.6. i get the error "luaGameScript does not contain key peaceful_mode" anyone know why?
daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: is there a way to turn off monsters attacking you

Post by daniel34 »

michalus wrote:hello,
somehow this does not seem to work in experimental version 13.6. i get the error "luaGameScript does not contain key peaceful_mode" anyone know why?
For 0.13:

Code: Select all

/c game.player.surface.peaceful_mode = true
/c game.forces["enemy"].kill_all_units()
This enables peaceful mode. To disable it replace true with false.
quick links: log file | graphical issues | wiki
Post Reply

Return to “Gameplay Help”