Page 2 of 2
Re: is there a way to turn off monsters attacking you
Posted: Wed Feb 03, 2016 10:30 pm
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.
Re: is there a way to turn off monsters attacking you
Posted: Wed Feb 03, 2016 10:39 pm
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()
Re: is there a way to turn off monsters attacking you
Posted: Sun Jul 10, 2016 11:07 am
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?
Re: is there a way to turn off monsters attacking you
Posted: Sun Jul 10, 2016 11:10 am
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.