Enable Enemies Mid-Game
Posted: Fri Nov 02, 2018 7:43 pm
I have played a while now without enemies (No Enemy bases). But now i have a good running factory and i want to have enemies now. Is it possible to turn them on using the console?
Code: Select all
/c
local s = game.player.surface.map_gen_settings
s["enemy-base"] = {
frequency = "normal",
richness = "normal",
size = "normal"}
game.player.surface.map_gen_settings = s
Code: Select all
/c local surface = game.player.surface
for c in surface.get_chunks() do
local position = surface.find_non_colliding_position("biter-spawner", {x=c.x*32+16, y=c.y*32+16}, 10, 3)
if position and surface.is_chunk_generated(c) then
surface.create_entity{name="biter-spawner", position=position}
end
end
Just kill them all, it's for balance of no-biters-on-startLtKronos wrote: Sun Nov 04, 2018 12:50 pm Thanks, this one worked. But now i have enemies in every free position on the map. Including my base :/.