Skip to main content

AnimatedTriggerAiHook

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​

MemberWhat it is
AnimatedTriggerAiHook()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

4 private and internal fields
MemberWhat it is
private bool isNetworkedWhether clients see the trigger. Default true.
private bool isOnEndFire when the action ends. Default false.
private bool isOnStartFire when the action starts. Default true.
private string triggerNameAnimator trigger name.

Methods​

MemberWhat 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
MemberWhat it is
private void Trigger(IActiveAction action)Fires the trigger, forced through the network animator if networked, otherwise on the local animator.