Thrawn's Revenge

Imperial Civil War [Empire at War] => Discussion, Suggestions & Feedback => Topic started by: panzerleader on October 11, 2018, 02:06:28 PM

Title: Would there be any way to implement priority targeting for units?
Post by: panzerleader on October 11, 2018, 02:06:28 PM
I know the base game has a bunch of issues that are not because of the mod and you guys can only do so much.  I'd like a way to toggle what types of units a capital ship will target.  I'm tired of them firing aimlessly at fighters when there are capitals that are present to target.  Often you tell a ship to target a ship right in front of it and it goes ok, well i'm gonna spin in a circle first and fire at fighters the whole time and then maybe i'll do what you wanted.  So if there was a button to click for target discrimination that would be awesome. 
Title: Re: Would there be any way to implement priority targeting for units?
Post by: rahulbridge on October 12, 2018, 07:57:50 PM
You can't change it in-game, but you can in the code.
Title: Re: Would there be any way to implement priority targeting for units?
Post by: Arvenski on October 16, 2018, 04:45:53 PM
You can't change it in-game
Thanks, Captain Obvious. :P

I believe Panzerleader was asking the devs if they could add this feature into the mod. I think that's a really cool idea, actually. It is kinda frustrating when, for instance, star destroyers waste their main battery shots by firing at fighters when there's a Mon Cal cruiser sitting right in front of them.
Title: Re: Would there be any way to implement priority targeting for units?
Post by: Corey on October 23, 2018, 05:30:04 PM
It's not possible to implement that
Title: Re: Would there be any way to implement priority targeting for units?
Post by: Mord on January 07, 2019, 12:48:36 AM
Thread necro...

What if you modify SpaceUnitTargetingPriorities.xml for the desired Priority_Set - in this case "Capital" - to entirely remove Fighters and Bombers? Then the AI will literally never waste shots on craft it can't possibly hit.

Obviously you would not want to modify the "Capital" Priority_Set if there are capital ships with anti-starfighter batteries, but such ships should probably use a different Priority_Set anyway.