M&B: Bannerlord 1.2.7
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
SandBox.Missions.AgentBehaviors.AlarmedBehaviorGroup Class Reference

Inherits SandBox.Missions.AgentBehaviors.AgentBehaviorGroup.

Public Member Functions

 AlarmedBehaviorGroup (AgentNavigator navigator, Mission mission)
 
override void Tick (float dt, bool isSimulation)
 
override float GetScore (bool isSimulation)
 
Agent GetClosestAlarmSource (out float distanceSquared)
 
override void ForceThink (float inSeconds)
 
- Public Member Functions inherited from SandBox.Missions.AgentBehaviors.AgentBehaviorGroup
AddBehavior< T > ()
 
GetBehavior< T > ()
 
bool HasBehavior< T > ()
 
void RemoveBehavior< T > ()
 
void SetScriptedBehavior< T > ()
 
void DisableScriptedBehavior ()
 
void DisableAllBehaviors ()
 
AgentBehavior GetActiveBehavior ()
 
virtual void Tick (float dt, bool isSimulation)
 
virtual void ConversationTick ()
 
virtual void OnAgentRemoved (Agent agent)
 
virtual float GetScore (bool isSimulation)
 
virtual void ForceThink (float inSeconds)
 

Static Public Member Functions

static void AlarmAgent (Agent agent)
 

Public Attributes

bool DisableCalmDown = false
 
- Public Attributes inherited from SandBox.Missions.AgentBehaviors.AgentBehaviorGroup
AgentNavigator Navigator
 
List< AgentBehaviorBehaviors
 

Static Public Attributes

const float SafetyDistance = 15
 
const float SafetyDistanceSquared = SafetyDistance * SafetyDistance
 

Protected Member Functions

override void OnActivate ()
 
override void OnDeactivate ()
 
- Protected Member Functions inherited from SandBox.Missions.AgentBehaviors.AgentBehaviorGroup
 AgentBehaviorGroup (AgentNavigator navigator, Mission mission)
 
virtual void OnActivate ()
 
virtual void OnDeactivate ()
 

Additional Inherited Members

- Protected Attributes inherited from SandBox.Missions.AgentBehaviors.AgentBehaviorGroup
float CheckBehaviorTime = 5.0f
 
Timer CheckBehaviorTimer
 
- Properties inherited from SandBox.Missions.AgentBehaviors.AgentBehaviorGroup
Agent OwnerAgent [get]
 
AgentBehavior ScriptedBehavior [get]
 
bool IsActive [get, set]
 
Mission Mission [get]
 

Constructor & Destructor Documentation

◆ AlarmedBehaviorGroup()

SandBox.Missions.AgentBehaviors.AlarmedBehaviorGroup.AlarmedBehaviorGroup ( AgentNavigator  navigator,
Mission  mission 
)

Member Function Documentation

◆ Tick()

override void SandBox.Missions.AgentBehaviors.AlarmedBehaviorGroup.Tick ( float  dt,
bool  isSimulation 
)
virtual

◆ GetScore()

override float SandBox.Missions.AgentBehaviors.AlarmedBehaviorGroup.GetScore ( bool  isSimulation)
virtual

◆ GetClosestAlarmSource()

Agent SandBox.Missions.AgentBehaviors.AlarmedBehaviorGroup.GetClosestAlarmSource ( out float  distanceSquared)

◆ AlarmAgent()

static void SandBox.Missions.AgentBehaviors.AlarmedBehaviorGroup.AlarmAgent ( Agent  agent)
static

◆ OnActivate()

override void SandBox.Missions.AgentBehaviors.AlarmedBehaviorGroup.OnActivate ( )
protectedvirtual

◆ OnDeactivate()

override void SandBox.Missions.AgentBehaviors.AlarmedBehaviorGroup.OnDeactivate ( )
protectedvirtual

◆ ForceThink()

override void SandBox.Missions.AgentBehaviors.AlarmedBehaviorGroup.ForceThink ( float  inSeconds)
virtual

Member Data Documentation

◆ SafetyDistance

const float SandBox.Missions.AgentBehaviors.AlarmedBehaviorGroup.SafetyDistance = 15
static

◆ SafetyDistanceSquared

const float SandBox.Missions.AgentBehaviors.AlarmedBehaviorGroup.SafetyDistanceSquared = SafetyDistance * SafetyDistance
static

◆ DisableCalmDown

bool SandBox.Missions.AgentBehaviors.AlarmedBehaviorGroup.DisableCalmDown = false