ThreatAvoidanceCoefficient: Difference between revisions
m Added missing flag section. |
Updated |
||
Line 13: | Line 13: | ||
}} | }} | ||
Affects how strongly this unit should | Affects how strongly this unit should choose a path of least threat. It is recommended to pick a value from a range of {{tt|0.0}} to {{tt|1.0}}. The higher the value, the more the unit tries to avoid any paths that fall in the range of the enemy, effectively choosing the path with least threat. Typical usage is found in harvesters or ore miners. It is an attribute of the unit and lasts until the unit is destroyed. | ||
[[AvoidThreats]]=yes on the AI [[TeamTypes]] makes the team members act like it is set with ThreatAvoidanceCoefficient=1.0 for the duration of that TeamType's existence. | |||
While [[The_Threat_System|The Threat System]] describes the mechanism of selecting a target during engagement when a unit is free to do so, the threat avoidance is the evaluation of the cumulative threat falling on different paths to its destination from its current cell and choosing a path with least threat. |
Latest revision as of 10:39, 11 September 2018
Flag: | ThreatAvoidanceCoefficient |
File(s): | rules(md).ini |
Values: | Floating point values: Any decimal number (clearer range should be added in Template:Values). |
Default: | 0 |
Applicable to: | InfantryTypes, VehicleTypes, and AircraftTypes |
Affects how strongly this unit should choose a path of least threat. It is recommended to pick a value from a range of 0.0 to 1.0. The higher the value, the more the unit tries to avoid any paths that fall in the range of the enemy, effectively choosing the path with least threat. Typical usage is found in harvesters or ore miners. It is an attribute of the unit and lasts until the unit is destroyed.
AvoidThreats=yes on the AI TeamTypes makes the team members act like it is set with ThreatAvoidanceCoefficient=1.0 for the duration of that TeamType's existence.
While The Threat System describes the mechanism of selecting a target during engagement when a unit is free to do so, the threat avoidance is the evaluation of the cumulative threat falling on different paths to its destination from its current cell and choosing a path with least threat.