Skip to main content

AgentNestSettings

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​

MemberWhat it is
AgentNestSettings()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

6 private and internal fields
MemberWhat it is
private string animatorSleepingBoolBacking field for AnimatorSleepingBool.
private float fullTiredBacking field for FullTired.
private float maximumDistanceBacking field for MaximumDistance.
private int noNestWanderHeuristicBacking field for NoNestWanderHeuristic.
private float startTiredBacking field for StartTired.
private NestType typeBacking field for Type.

Properties​

MemberWhat 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​

MemberWhat 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: