Class AIUtility
Shared utility methods for the AI subsystem. Provides common operations used across ability rotations, boss scripts, and attacking states to eliminate duplication (DRY).
public static class AIUtility
- Inheritance
-
AIUtility
- Inherited Members
Methods
FindAbilityByTemplate(IAbilityController, int)
Finds the first Ability instance whose template ID matches the specified value. Used by ability rotations, boss scripts, and any system that needs to resolve a template ID to a learned ability instance.
public static Ability FindAbilityByTemplate(IAbilityController abilityController, int templateID)
Parameters
abilityControllerIAbilityControllerThe NPC's ability controller containing known abilities.
templateIDintThe ability template ID to search for.
Returns
- Ability
The matching ability instance, or null if not found.