Skip to content

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.

The coefficient multiplies the candidate’s current strength as a fraction of its maximum — 1 for an undamaged candidate, falling toward 0 as it is hurt. A positive value makes the object prefer healthy candidates; a negative value is what makes it finish off wounded ones. It is read from the type of the object doing the choosing, never from the candidate’s type.

rules.ini
[MYTANK] ; example UnitType
TargetStrengthCoefficient=-1
See alsotarget-selection