A class in Root.Township, Alta.Intelligence.
AI hook that fires an animator trigger on the creature when the action starts, ends, or both.
Constructors
| Member | What it is |
|---|
AnimatedTriggerAiHook() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
4 private and internal fields
| Member | What it is |
|---|
private bool isNetworked | Whether clients see the trigger. Default true. |
private bool isOnEnd | Fire when the action ends. Default false. |
private bool isOnStart | Fire when the action starts. Default true. |
private string triggerName | Animator trigger name. |
Methods
| Member | What it is |
|---|
protected override void FinishedOrCancelled(IActiveAction finished) | Fires the trigger if isOnEnd is set and the creature still exists. |
protected override void Used(IActiveAction active) | Fires the trigger if isOnStart is set. |
1 private and internal method
| Member | What it is |
|---|
private void Trigger(IActiveAction action) | Fires the trigger, forced through the network animator if networked, otherwise on the local animator. |