Console Command Turn off peaceful mode not Working

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Post Reply
daggertx
Burner Inserter
Burner Inserter
Posts: 13
Joined: Sun Jul 03, 2016 5:17 pm
Contact:

Console Command Turn off peaceful mode not Working

Post 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

daggertx
Burner Inserter
Burner Inserter
Posts: 13
Joined: Sun Jul 03, 2016 5:17 pm
Contact:

Re: Console Command Turn off peaceful mode not Working

Post by daggertx »

Sorry I am also on the latest experimental release 0.13.4

daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: Console Command Turn off peaceful mode not Working

Post by daniel34 »

Code: Select all

/c game.player.surface.peaceful_mode = false
/c game.forces["enemy"].kill_all_units()
quick links: log file | graphical issues | wiki

daggertx
Burner Inserter
Burner Inserter
Posts: 13
Joined: Sun Jul 03, 2016 5:17 pm
Contact:

Re: Console Command Turn off peaceful mode not Working

Post by daggertx »

Thank you , its working.

Post Reply

Return to “Gameplay Help”