Skip to content

MyEffectivenessCoefficient

Weights a candidate target by how much damage this object's warhead does to that candidate's armor.

Specification
Applies to
AircraftTypeBuildingTypeInfantryTypeUnitType
File
rules.ini
Section
[<ObjectType ID>]
Value
floating point
When omitted
ComputedTakes the value of MyEffectivenessCoefficientDefault in [General], which is itself 0 when that key is absent too.

During automatic target selection, the coefficient multiplies the Verses value of the warhead this object would use against a candidate, taken for the candidate’s armor class. A Verses value of 100% counts as 1. A positive coefficient draws the object toward candidates it damages well, and a negative one steers it away from them.

The value comes from the type of the object doing the choosing. The candidate’s setting plays no part.

rules.ini
[MYTANK] ; example UnitType
MyEffectivenessCoefficient=2
See also — target-selection