A class in Root.Township, Alta.Intelligence.
Action component that sends an agent to the closest free nest of a type to sleep at night. Runs ActiveNest on the server's AI.
Constructors
| Member | What it is |
|---|
AgentNestSettings() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
6 private and internal fields
| Member | What it is |
|---|
private string animatorSleepingBool | Backing field for AnimatorSleepingBool. |
private float fullTired | Backing field for FullTired. |
private float maximumDistance | Backing field for MaximumDistance. |
private int noNestWanderHeuristic | Backing field for NoNestWanderHeuristic. |
private float startTired | Backing field for StartTired. |
private NestType type | Backing field for Type. |
Properties
| Member | What it is |
|---|
string AnimatorSleepingBool { get; } | Name of the network animator bool set while the agent sleeps (default IsSleeping). |
float FullTired { get; } | Normalized time of day at which the nest action reaches full weight. |
float MaximumDistance { get; } | How far to search for a nest (default 50). |
int NoNestWanderHeuristic { get; } | Wander heuristic passed to the director when no nest is found. |
float StartTired { get; } | Normalized time of day when the agent starts getting tired; it stays asleep until the time drops below this. |
NestType Type { get; } | The NestType of nest to look for. |
Methods
| Member | What it is |
|---|
protected override IAction GetAction() | Returns the ActiveNest action for these settings. |
Used in
Members of other types that take, return or hold a AgentNestSettings: