LandTargeting
| Flag: | LandTargeting |
| File(s): | rules(md).ini |
| Values: | Signed integers: All whole numbers from -2147483648 to 2147483647; in rare cases, only from -32768 to 32767. (Limited to: 0,1,2)
|
| Default: | 0 |
| Applicable to: | TechnoTypes:
AircraftTypes, BuildingTypes, InfantryTypes and VehicleTypes |
This flag determines whether an object can fire on land units (as opposed to naval units) or not. In Yuri's Revenge, it additionally can allow land targeting only with the secondary weapon.
This flag, along with NavalTargeting, 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.".
| Value | Basic game interpretation | Explanation from rules |
|---|---|---|
| 0 | LAND_OKAY | Land is okay |
| 1 | LAND_NOT_OKAY | Land is not okay[1] |
| 2 | Can shoot land, but only with secondary weapon[2] |
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.
Notes
As part of the normal weapon selection rules, this, like targeting aerial targets, bypasses Overpowerable=true and allows BuildingTypes (such as Tesla Coil) to directly use Secondary.
Bugs/Side-Effects/Unexpected Limitations
TechnoTypes with the flag Deployer=yes&DeployFire=yes or IsGattling will ignore this flag.
Footnotes
- ↑ The rules at this point actually say "Land is OK". That is evidently wrong, illustrated by the given game interpretation, supported by the fact that "0" already is "Land is okay", and proven in the wild a thousand times over.
See Also
- AA/AG's notes on paratroopers.