Page 1 of 1

Codes to allien attack?

Posted: Fri Sep 04, 2015 9:01 pm
by Airat9000
/c game.peacefulmode = false

/c game.peacefulmode = true

not work((

Re: Codes to allien attack?

Posted: Fri Sep 04, 2015 9:21 pm
by Boogieman14
/c game.peaceful_mode = true

Which actually took me all of half a minute to find on the wiki...

Re: Codes to allien attack?

Posted: Fri Sep 04, 2015 9:30 pm
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.

Re: Codes to allien attack?

Posted: Fri Sep 04, 2015 9:37 pm
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.

Re: Codes to allien attack?

Posted: Fri Sep 04, 2015 9:43 pm
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

Re: Codes to allien attack?

Posted: Tue Sep 08, 2015 9:10 pm
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?