Prevent biters from attacking something
Posted: Mon Oct 26, 2015 11:25 pm
Is there a way to make biters totally not attack something?
I'd like them to totally ignore rail.
Thanks.
I'd like them to totally ignore rail.
Thanks.
www.factorio.com
https://forums.factorio.com/
Code: Select all
data.raw["straight-rail"]["straight-rail"].destructible = false
data.raw["curved-rail"]["curved-rail"].destructible = false
I think you want to create a new force, (by default there are 3 forces, player, neutral, biter) and assign the rail entities to the new force. Alternatively, assign the rails to the neutral force. Biters should ignore entities not part of the player force.TheSAguy wrote:Is there a way to make biters totally not attack something?
I'd like them to totally ignore rail.
Thanks.
Biters will still chew their way through neutral/non-player entities to get to their target. So this might work for rail because that won't be in the way, but not for other structures that might block the biter's path.Afforess wrote:I think you want to create a new force, (by default there are 3 forces, player, neutral, biter) and assign the rail entities to the new force. Alternatively, assign the rails to the neutral force. Biters should ignore entities not part of the player force.TheSAguy wrote:Is there a way to make biters totally not attack something?
I'd like them to totally ignore rail.
Thanks.
Note: I have not tested this, I only speculate forces will work (as delineating ownership is their purpose)
Huh, is that actually an actual "chewing" behavior? I always thought biters just damaged structures that they passed too closely to.prg wrote: Biters will still chew their way through neutral/non-player entities to get to their target. So this might work for rail because that won't be in the way, but not for other structures that might block the biter's path.
They have to actually attack something if they want to damage it, yes. They don't tear down walls by just looking at them funny.Afforess wrote:Huh, is that actually an actual "chewing" behavior? I always thought biters just damaged structures that they passed too closely to.prg wrote: Biters will still chew their way through neutral/non-player entities to get to their target. So this might work for rail because that won't be in the way, but not for other structures that might block the biter's path.