ActiveMeleeAttack
A class in Root.Township, Alta.Intelligence.Wyrms.
Wyrm melee attack action. Prefers living, hurt targets in reach and sometimes turns into a flurry. Runs on the server.
- Listed in Creatures and AI
- Inherits or implements
BasicActiveAction<Wyrm, WyrmMeleeSettings>
Constructors
| Member | What it is |
|---|---|
ActiveMeleeAttack() | Creates an ActiveMeleeAttack with default values. |
Methods
| Member | What it is |
|---|---|
static BasicAction<Wyrm, ActiveMeleeAttack, WyrmMeleeSettings> GetAction(WyrmMeleeSettings settings) | Builds the melee action: dangerous target in reach, sticky to the current target, preferring living and hurt ones. |
override void Update(bool hasTarget) | Turns the wyrm to face its target, if it has one. |
protected override void OnStart() | Rolls FlurryChance for a flurry, fires a random attack trigger on the network animator and sets the duration. |