Enum AITargetingMode
How an NPC picks which enemy to hit when several are available. Supplied by TargetingMode and consumed by PickTarget(AIController, List<ICharacter>).
public enum AITargetingMode
Fields
Picks the physically closest candidate. Simple, predictable, good for critters.
Ignores the threat table and picks a random living candidate, re-rolling periodically. This is what makes a "rampaging" enemy feel uncontrollable — taunts and threat do not hold it, and it will wander off mid-fight onto someone else.
Default MMO behaviour: whoever has generated the most threat, with a small chance of a secondary pick for variety. Uses the aggression table.
Picks the candidate with the lowest health fraction — an executioner.