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.
How do I make turrets attack all enemy buildings?
- aubergine18
- Smart Inserter
- Posts: 1264
- Joined: Fri Jul 22, 2016 8:51 pm
- Contact:
Re: How do I make turrets attack all enemy buildings?
As far as I know it's not currently possible, unless this gets implemented: viewtopic.php?f=28&t=35361
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
Re: How do I make turrets attack all enemy buildings?
_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.