Page 1 of 1
How do I make turrets attack all enemy buildings?
Posted: Sat Oct 29, 2016 5:41 pm
by _ImPat
Hello,
I am currently looking for a way to make turrets attack all enemy structures. Not only military but also walls, machines, belts etc.
I would greatly appreciate the help.
Re: How do I make turrets attack all enemy buildings?
Posted: Sat Oct 29, 2016 6:09 pm
by aubergine18
As far as I know it's not currently possible, unless this gets implemented:
viewtopic.php?f=28&t=35361
Re: How do I make turrets attack all enemy buildings?
Posted: Sun Oct 30, 2016 12:31 pm
by sore68
_ImPat wrote:Hello,
I am currently looking for a way to make turrets attack all enemy structures. Not only military but also walls, machines, belts etc.
I would greatly appreciate the help.
This page is determined as will help you.
http://lua-api.factorio.com/latest/LuaSurface.html
find_entities_filtered
find_enemy_units
find_nearest_enemy
These three commands are useful in turrets.