NavalTargeting
Flag: | NavalTargeting |
File(s): | rules(md).ini |
Values: | 0, 1, 2, 3, 4, 5, 6, 7 |
Default: | 0 |
Applicable to: | TechnoTypes:
AircraftTypes, BuildingTypes, InfantryTypes and VehicleTypes |
This flag determines whether an object can fire on naval units (as opposed to land units) or not. It has several more options to choose from than LandTargeting, and YR expanded it by one more, adding the possible restriction to only use the primary weapon on naval targets.
This flag, along with LandTargeting, was likely introduced because technically, ships are ground-level units as well, and a simple AG=yes would have does allow Submarines, for example, to fire torpedoes through the water, over the ground, into a tank. This, of course, is not desired. Therefore, the additional target area distinction between "Land" and "Naval" was created. The originally intended AN and AS were probably dismissed because they were not "complex" enough, allowing only a simple "Can fire on submarines? Yes." rather than something like "Can fire on submarines? Yes, but only with it's Secondary.".
UNDERWATER_* refers to units with Underwater=yes set.
ORGANIC_* refers to units with Organic=yes set.
NAVAL_* refers to units with Naval=yes set.
¹ Note: According to The Guide, this actually only means that everything with Naval=yes set will be attacked with the primary weapon. That leaves the secondary undocumented. It could mean a boomer, was it set NavalTargeting=5, would shoot torpedos on ships, but fire Cruise Missiles to kill Robot Tanks, Amphibious Transporters and Tanyas in the water. This, however, is pure speculation by this revision's author.
² Also note that DeeZire mentioned a NavalTargeting=7 unit could get confused if ordered to attack amphibious units.
NavalTargeting=1 LandTargeting=2
NavalTargeting=3 LandTargeting=2
NavalTargeting=7 LandTargeting=1
NavalTargeting=4 LandTargeting=2
This section is just ment to show that Naval- & LandTargeting aren't mutually exclusive, and can confuse the hell out of you as well as the game. Apart from the usual checks, you should watch them double closely if you're doing any extended Primary/Secondary magic.
See also
- LandTargeting
- AA/AG's notes on paratroopers.