Skip to main content

EventChannelAiHook

A class in Root.Township, Alta.Intelligence.

AI hook that fires a hook event channel on the creature when the action starts and another when it ends, so other components can react.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private HookEventChannel endedChannel fired when the action ends.
private HookEventChannel startedChannel fired when the action starts.

Methods​

MemberWhat it is
protected override void FinishedOrCancelled(IActiveAction finished)Fires ended on the creature unless it's None.
protected override void Used(IActiveAction active)Fires started on the creature unless it's None.