How to force bug attacks in sandbox

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
TheGuyWhoRan
Burner Inserter
Burner Inserter
Posts: 6
Joined: Thu Oct 17, 2024 4:25 am
Contact:

How to force bug attacks in sandbox

Post 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?
mmmPI
Smart Inserter
Smart Inserter
Posts: 4823
Joined: Mon Jun 20, 2016 6:10 pm
Contact:

Re: How to force bug attacks in sandbox

Post 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
Check out my latest mod ! It's noisy !
TheGuyWhoRan
Burner Inserter
Burner Inserter
Posts: 6
Joined: Thu Oct 17, 2024 4:25 am
Contact:

Re: How to force bug attacks in sandbox

Post by TheGuyWhoRan »

is there a way to spawn a source of pollution in the sandbox or should I just throw down a building?
mmmPI
Smart Inserter
Smart Inserter
Posts: 4823
Joined: Mon Jun 20, 2016 6:10 pm
Contact:

Re: How to force bug attacks in sandbox

Post 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
Check out my latest mod ! It's noisy !
Post Reply

Return to “Gameplay Help”