Skip to main content

ActiveSchmeecheePlant

A class in Root.Township, Alta.Intelligence.

Schmeechee action where it buries itself in the ground and sleeps for a while, then pops out.

Constructors​

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

Fields​

3 private and internal fields
MemberWhat it is
private float finishPlantTime the embed curve ends.
private bool isPlantingWhether it is still sinking in.
private float startTimeTime planting started.

Methods​

MemberWhat it is
static BasicAction<Agent, ActiveIdle, AgentIdleSettings> GetAction(AgentIdleSettings settings)Returns an ActiveIdle action for the given idle settings, not a plant action.
override void Update(bool hasTarget)While planting, sinks the model along embedOffset and goes kinematic once not held.
protected override void OnStart()Sets a random duration, tells clients to embed, sets the sleeping bool and hooks finish and cancel.
1 private and internal method
MemberWhat it is
private void OnFinished(IActiveAction finished)Wakes it, makes it non-kinematic and pops it upwards.