Skip to main content

ActiveFaceTarget

A class in Root.Township, Alta.Intelligence.

Server: running action that turns a creature until its target is close enough to the centre of its view cone. The creature must implement IHasViewCone.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private ViewCone viewConeThe creature's view cone.

Methods​

MemberWhat it is
override void Update(bool hasTarget)Finishes when the target is inside the view cone within TargetRatio, otherwise turns towards it. Cancels if there's no target.
protected override void OnStart()Gets the creature's view cone.