Skip to main content

ActiveSchmeecheeFlee

A class in Root.Township, Alta.Intelligence.

Schmeechee action that runs away from its target until far enough, cancelling if it gets stuck.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private float lastCacheTime of the last stuck check.
private Vector3 lastPositionPosition at the last stuck check.

Methods​

MemberWhat it is
override void Update(bool hasTarget)While grounded, steers away from the target and pushes forward; finishes when far away, cancels if it barely moved in a second.
protected override void OnStart()Records the start position and time and resets run speed.