Turning off enemy force AI

Place to get help with not working mods / modding interface.
Post Reply
Veden
Filter Inserter
Filter Inserter
Posts: 294
Joined: Wed Jul 13, 2016 3:54 pm
Contact:

Turning off enemy force AI

Post by Veden »

Is it possible to turn off the biter ai?

I found the force ai_controllable boolean and switched it to false, however, it doesn't seem to prevent biter unit group formations when nest are exposed to pollution.

User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: Turning off enemy force AI

Post by Adil »

Did it stop those groups from doing stuff?
There's a complicated legacy on this topic, I remember ai_controllable being responsible for group orders, but there's also some enemy_epansion flag. Also, peaceful mode switch for example does not affect already spawned biters, maybe same comes for ai.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.

Veden
Filter Inserter
Filter Inserter
Posts: 294
Joined: Wed Jul 13, 2016 3:54 pm
Contact:

Re: Turning off enemy force AI

Post by Veden »

If I set ai_controllable to false and kill all the units, no additional base seem to form, but unit groups still attack polluted areas.

Changing the expansion flags works for preventing new bases as well.

At the moment, I am just using the peaceful mode to prevent all actions, so I can program my own.

Post Reply

Return to “Modding help”