Skip to main content

ActiveEmerge

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

Wyrm action that comes up out of the ground near a living target. Runs on the server as part of the wyrm AI.

Constructors​

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

Methods​

MemberWhat it is
static BasicAction<Wyrm, ActiveEmerge, WyrmEmergeSettings> GetAction(WyrmEmergeSettings settings)Builds the emerge action: a living, not-bug target within RadiusSquared, with a random Chance roll.
override void Update(bool hasTarget)Turns the wyrm to face its target, if it has one.
protected override void OnStart()Shows the wyrm, switches to emerged actions, clears the animated bool and schedules the sense change.
2 private and internal methods
MemberWhat it is
private void ChangeSenses()Applies the settings' EmergedSenses, unless the wyrm is being destroyed.
private void EmergeFinished(IActiveAction finished)When the emerge ends, turns the wyrm's collision back on.