MultiMissile targeting type
SW.AITargeting=
Whiteboard
A player owned super weapon with SW.AutoFire=yes seems to auto fire only on cloaked buildings. All other buildings are ignored. If there are no cloaked buildings, the SW won't auto fire at all. - mevitar
----
I tested with a rapidly auto-firing super weapon that created an animation. Once the player house had settled on a favourite enemy, it fired and started picking different targets as units moved. Could it be that ThreadPosed is not set on the buildings and units? -AlexB
----
ThreatPosed isn't set on any structure in YR. Setting a non-zero ThreatPosed means the units will auto attack the structures, and this isn't how it works by default game settings. If that's how this SW is supposed to work, then ok. It's just that as far as i remember, TS Multi Missile could auto-target any structure, and i don't think TS had non-zero ThreatPosed on any structure.
BTW, since typing the above i kept testing this targeting type as i tried to figure out how exactly does it work. I set all base defense to non-zero ThreatPosed, and it did target them randomly. I also noticed that it sometimes attacked power plants (ThreatPosed=0) and unit factories (but only when a unit was supposed to leave it). Cloaked structures still seemed to have priority, though (or at least it looks in such way, since it kept attacking them most of the time). It even kept attacking Insignificant=yes cloaked structures when i was testing it earlier before i added non-zero ThreatPosed to base defenses (i only noticed it now that the attacked structure had that tag).
After i destroyed most of AI's stuff (including ConYard and all cloaked structures, so i can safely watch which targets the AI will pick now), but left some miners, refineries, factories and few base defenses (on low power, though, as there were no powerplants), the SW with SW.AITargeting=
___
To clarify: "posing the largest threat" is misleading. It's not about ThreadPosed=. The game divides the map into smaller parts, and all units in a part count toward this part's threat rating. Thus, even if buildings don't have ThreadPosed= set, the building with many units around them is the one being targeted. The logic will not target a ThreadPosed=0 building alone, and it will not target a ThreadPosed=1000 unit alone. For cloaked buildings, this is different, as instead of this area-threadpose