M&B: Bannerlord 1.2.12
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
SandBox.CampaignAgentComponent Class Reference

Inherits TaleWorlds.MountAndBlade.AgentComponent.

Public Member Functions

 CampaignAgentComponent (Agent agent)
 
AgentNavigator CreateAgentNavigator (LocationCharacter locationCharacter)
 
AgentNavigator CreateAgentNavigator ()
 
void OnAgentRemoved (Agent agent)
 
override void OnTickAsAI (float dt)
 
override float GetMoraleDecreaseConstant ()
 
override float GetMoraleAddition ()
 
override void OnStopUsingGameObject ()
 
- Public Member Functions inherited from TaleWorlds.MountAndBlade.AgentComponent
virtual void Initialize ()
 
virtual void OnItemPickup (SpawnedItemEntity item)
 
virtual void OnWeaponDrop (MissionWeapon droppedWeapon)
 
virtual void OnWeaponHPChanged (TaleWorlds.Core.ItemObject item, int hitPoints)
 
virtual void OnRetreating ()
 
virtual void OnMount (Agent mount)
 
virtual void OnDismount (Agent mount)
 
virtual void OnHit (Agent affectorAgent, int damage, in MissionWeapon affectorWeapon)
 
virtual void OnDisciplineChanged ()
 
virtual void OnAgentRemoved ()
 
virtual void OnComponentRemoved ()
 Only called if component is manually removed without removing the owner Agent during the mission.
 

Properties

AgentNavigator AgentNavigator [get]
 
PartyBase OwnerParty [get]
 

Additional Inherited Members

- Protected Member Functions inherited from TaleWorlds.MountAndBlade.AgentComponent
 AgentComponent (Agent agent)
 
- Protected Attributes inherited from TaleWorlds.MountAndBlade.AgentComponent
readonly Agent Agent
 

Constructor & Destructor Documentation

◆ CampaignAgentComponent()

SandBox.CampaignAgentComponent.CampaignAgentComponent ( Agent agent)

Member Function Documentation

◆ CreateAgentNavigator() [1/2]

AgentNavigator SandBox.CampaignAgentComponent.CreateAgentNavigator ( LocationCharacter locationCharacter)

◆ CreateAgentNavigator() [2/2]

AgentNavigator SandBox.CampaignAgentComponent.CreateAgentNavigator ( )

◆ OnAgentRemoved()

void SandBox.CampaignAgentComponent.OnAgentRemoved ( Agent agent)

◆ OnTickAsAI()

override void SandBox.CampaignAgentComponent.OnTickAsAI ( float dt)
virtual

◆ GetMoraleDecreaseConstant()

override float SandBox.CampaignAgentComponent.GetMoraleDecreaseConstant ( )
virtual

◆ GetMoraleAddition()

override float SandBox.CampaignAgentComponent.GetMoraleAddition ( )
virtual

◆ OnStopUsingGameObject()

override void SandBox.CampaignAgentComponent.OnStopUsingGameObject ( )
virtual

Property Documentation

◆ AgentNavigator

AgentNavigator SandBox.CampaignAgentComponent.AgentNavigator
get

◆ OwnerParty

PartyBase SandBox.CampaignAgentComponent.OwnerParty
get