Page 1 of 1

How does the AI use artillery, by family or stats?

Posted: Sun Dec 29, 2019 11:59 pm
by grimjaw
I'm asking about this because I am working on a mod that creates additional artillery types. I want to make sure that AI uses the new units in a way that makes sense. Does the AI use artillery under rules defined by the family of the subunit, or does it use artillery according to the STATS of the unit such as range, damage, rate of fire, etc. I'm focusing on what the engine does and not what is achieved by scripting.

Re: How does the AI use artillery, by family or stats?

Posted: Tue Jan 07, 2020 10:21 am
by Pocus
It works at the family level.

Re: How does the AI use artillery, by family or stats?

Posted: Thu Jan 09, 2020 12:12 am
by grimjaw
Thanks, Pocus. So if I converted some rifled artillery, like 10-pdr Parrotts, to light artillery, and converted Napoleons to medium artillery, would the AI use them very much differently than it does now? Historically Napoleons cost more to produce than Parrott rifles, and I'd like to put the gun types in families with similar costs. If that means the AI will start preferring Napoleons in clear terrain/weather, and rifled artillery in woods/rain, then I'll have to come up with a different idea.

Re: How does the AI use artillery, by family or stats?

Posted: Thu Jan 09, 2020 4:26 pm
by Pocus
No that would not change much :sourcil: