Skip to main content

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​

MemberWhat it is
ActiveAttackDirectionReact()Creates an ActiveAttackDirectionReact with default values.

Fields​

1 private and internal field
MemberWhat it is
private AttackDirectionCore coreThe attack direction core in use, cleared when the action ends.

Methods​

MemberWhat 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
MemberWhat it is
private void FinishedOrCanceled(IActiveAction finished)Disables the core for this creature when the action ends either way.