Entity flag to make demolisher AI ignore a player building
Posted: Mon Nov 03, 2025 1:29 pm
Please consider adding a way to make the demolisher AI ignore a building (so it will not investigate or attack such a player-built structure). It's totally fine if it runs into the object on its own (or is pulled into it by a player) that it destroys it, simply that it doesn't go out of its way to attack it. Think the equivalent of is_military_target but for demolisher AI. I believe the reason a specific api feature is needed is that anything I could think of changing to have a demolisher ignore a player-built structure would have other gameplay implications.
My first thought would be perhaps an entry in EntityPrototypeFlags, but perhaps there is a better place?
The overall desire for such a capability would be to implement things like the original demolisher FFF that implied only big miners would attract demolishers, or to have options like longer-range elevated rails able to traverse demolisher territory as long as you dodged their regular paths. There may be gameplay reasons in mods to not kill every single demolisher near the base, for instance.
My first thought would be perhaps an entry in EntityPrototypeFlags, but perhaps there is a better place?
The overall desire for such a capability would be to implement things like the original demolisher FFF that implied only big miners would attract demolishers, or to have options like longer-range elevated rails able to traverse demolisher territory as long as you dodged their regular paths. There may be gameplay reasons in mods to not kill every single demolisher near the base, for instance.