Table of Contents

Enum AITargetingMode

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.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 = 3

Picks the physically closest candidate. Simple, predictable, good for critters.

Random = 1

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.

Threat = 0

Default MMO behaviour: whoever has generated the most threat, with a small chance of a secondary pick for variety. Uses the aggression table.

Weakest = 2

Picks the candidate with the lowest health fraction — an executioner.