Steps to reproduce:
Spawn 1000 spiders in a 2x2 chunk area (fully paved and free of any obstructions):
Code: Select all
for i=1,1000 do
local x = -32 + 64*math.random()
local y = -32 + 64*math.random()
local e = game.surfaces.nauvis.create_entity({name="spidertron", position={x,y}, force=game.forces.player, create_build_effect_smoke=false})
end
Code: Select all
for _, spider in pairs(game.surfaces.nauvis.find_entities_filtered{name="spidertron"}) do
spider.autopilot_destination = {0,0}
end