Skip to main content

ActiveMeleeAttack

A class in Root.Township, Alta.Intelligence.Wyrms.

Wyrm melee attack action. Prefers living, hurt targets in reach and sometimes turns into a flurry. Runs on the server.

Constructors​

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

Methods​

MemberWhat it is
static BasicAction<Wyrm, ActiveMeleeAttack, WyrmMeleeSettings> GetAction(WyrmMeleeSettings settings)Builds the melee action: dangerous target in reach, sticky to the current target, preferring living and hurt ones.
override void Update(bool hasTarget)Turns the wyrm to face its target, if it has one.
protected override void OnStart()Rolls FlurryChance for a flurry, fires a random attack trigger on the network animator and sets the duration.