Page 1 of 1

Console Command Turn off peaceful mode not Working

Posted: Sun Jul 03, 2016 5:20 pm
by daggertx
I have the game set to enemies never attack first. Anyway to turn this off? I tried the below and it gives an error.

/c games.peaceful_mode = false


Says the luagamescript does not contain that key


Thank you

Re: Console Command Turn off peaceful mode not Working

Posted: Sun Jul 03, 2016 5:25 pm
by daggertx
Sorry I am also on the latest experimental release 0.13.4

Re: Console Command Turn off peaceful mode not Working

Posted: Sun Jul 03, 2016 5:49 pm
by daniel34

Code: Select all

/c game.player.surface.peaceful_mode = false
/c game.forces["enemy"].kill_all_units()

Re: Console Command Turn off peaceful mode not Working

Posted: Sun Jul 03, 2016 6:30 pm
by daggertx
Thank you , its working.