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
Fields
3 private and internal fields
| Member | What it is |
|---|
private float finishPlant | Time the embed curve ends. |
private bool isPlanting | Whether it is still sinking in. |
private float startTime | Time planting started. |
Methods
| Member | What 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
| Member | What it is |
|---|
private void OnFinished(IActiveAction finished) | Wakes it, makes it non-kinematic and pops it upwards. |