ActiveAttackDirectionReact
A class in Root.Township, Alta.Intelligence.
Server: running action that drives an AttackDirectionCore (reacting to the direction a player attacks from) for a random duration while there's a target.
Constructors
Fields
1 private and internal field
| Member | What it is |
|---|
private AttackDirectionCore core | The attack direction core in use, cleared when the action ends. |
Methods
| Member | What it is |
|---|
override void Update(bool hasTarget) | Updates the core each tick, or finishes if the target is gone. |
protected override void OnStart() | Sets a random duration, gets the core from the settings for this creature and hooks the end events. |
1 private and internal method
| Member | What it is |
|---|
private void FinishedOrCanceled(IActiveAction finished) | Disables the core for this creature when the action ends either way. |