TargetStrengthCoefficient
Weights a candidate target by how much of its maximum strength it still has.
Specification
- Applies to
- AircraftTypeBuildingTypeInfantryTypeUnitType
- File
rules.ini- Section
[<ObjectType ID>]- Value
- floating point
- When omitted
- ComputedTakes the value of TargetStrengthCoefficientDefault in [General], which is itself 0 when that key is absent too.
When an object of this type scores a candidate target, it adds this coefficient multiplied by the candidate’s remaining strength as a fraction of its maximum. That fraction is 1 for an undamaged candidate and falls toward 0 as the candidate is hurt. A positive value makes the object prefer healthy candidates; a negative value makes it prefer wounded ones. The coefficient comes from the type of the object doing the choosing, never from the candidate’s type.
[MYTANK] ; example UnitTypeTargetStrengthCoefficient=-1See also — target-selection