Enum AITargetingMode
- Namespace
- FishMMO.Server.Implementation.World.SceneServer.AI
- Assembly
- FishMMO.Server.dll
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
Nearest = 3Picks the physically closest candidate. Simple, predictable, good for critters.
Random = 1Ignores 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.
Threat = 0Default MMO behaviour: whoever has generated the most threat, with a small chance of a secondary pick for variety. Uses the aggression table.
Weakest = 2Picks the candidate with the lowest health fraction — an executioner.