Page 1 of 1

How to force bug attacks in sandbox

Posted: Fri Nov 21, 2025 11:05 pm
by TheGuyWhoRan
In the sandbox, how do I force bugs to attack? They just stand around after being spawned. Is there some way to have them aggro to a specific spot without using a turret?

Re: How to force bug attacks in sandbox

Posted: Sat Nov 22, 2025 12:09 am
by mmmPI
if they are not peaceful and you spawned them in their regular force, pollution should also trigger attacks like on freeplay if there is a source to attack, that can spread further away than the aggro radius of turrets

Re: How to force bug attacks in sandbox

Posted: Sat Nov 22, 2025 12:24 am
by TheGuyWhoRan
is there a way to spawn a source of pollution in the sandbox or should I just throw down a building?

Re: How to force bug attacks in sandbox

Posted: Sat Nov 22, 2025 10:50 am
by mmmPI
TheGuyWhoRan wrote: Sat Nov 22, 2025 12:24 am is there a way to spawn a source of pollution in the sandbox or should I just throw down a building?
I know you can use commands like shown on https://wiki.factorio.com/Console#Add_a ... _pollution , that just fill a place with a lot of polution that will spread overtime but i'm not familiar enough with sandbox nor lua to write one that will work for sure without characters or how to write the coordinates that would replace the player.position properly without trial and errors. Not sure if sandbox = editor too in your game, or if "only sandbox".

Depending on your use case and your familiarity with the backend you may just as well throw down a building to make sure biters have "something" to attack , possibly using a mod like https://mods.factorio.com/mod/pollution-module to make sure your building pollute a lot, would get rid of the need for reasonning with the game coordinate system and commands, that is what i would do in sandbox/editor to test my game blueprint, i would go into the commands if i was trying to mod something