Skip to main content

ActiveRegainControl

A class in Root.Township, Alta.Intelligence.

Server: running action for a creature recovering after being knocked about. Waits until it's nearly still, then restores walker power and can switch action sets.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private float minimumVelocitySquaredSquared MinimumVelocity from the settings.

Methods​

MemberWhat it is
override void Update(bool hasTarget)Finishes once the rigidbody is slower than the minimum velocity.
protected override void OnStart()Sets an optional max duration and the walker's power gain per second.
1 private and internal method
MemberWhat it is
private void OnFinished(IActiveAction active)Sets walker power back to 1 and switches to the ExitTo set if one is set.