Page 1 of 1

Console commands not working?

Posted: Sat Jul 25, 2015 8:32 pm
by Brathahn
Hi there,
i was playing around with the console a bit and saw that some commands are not working while others are.
Did the command change or is it a bug?

Image

Re: Console commands not working?

Posted: Sat Jul 25, 2015 10:38 pm
by orzelek
There was a name update to add underscores to command names between the words. Some commands also changed places - list can be found in release notes.

Re: Console commands not working?

Posted: Sat Jul 25, 2015 11:17 pm
by FishSandwich

Code: Select all

game.peaceful_mode = false
game.force['enemy'].kill_all_units()

Re: Console commands not working?

Posted: Sun Jul 26, 2015 12:12 am
by Brathahn
Seems like the wiki is outdated.
Anyways, thank you!

Edit: it has to be game.forces['enemy'].kill_all_units()