Table of Contents

Class CommonAIComponent

Namespace
TaleWorlds.MountAndBlade
Assembly
TaleWorlds.MountAndBlade.dll
public class CommonAIComponent : AgentComponent
Inheritance
CommonAIComponent
Inherited Members

Constructors

CommonAIComponent(Agent)

public CommonAIComponent(Agent agent)

Parameters

agent Agent

Properties

InitialMorale

public float InitialMorale { get; }

Property Value

float

IsPanicked

public bool IsPanicked { get; }

Property Value

bool

IsRetreating

public bool IsRetreating { get; }

Property Value

bool

Morale

public float Morale { get; set; }

Property Value

float

RecoveryMorale

public float RecoveryMorale { get; }

Property Value

float

ReservedRiderAgentIndex

public int ReservedRiderAgentIndex { get; }

Property Value

int

Methods

CanPanic()

public bool CanPanic()

Returns

bool

Initialize()

public override void Initialize()

OnAgentRemoved()

public override void OnAgentRemoved()

OnComponentRemoved()

public override void OnComponentRemoved()

OnHit(Agent, int, in MissionWeapon)

public override void OnHit(Agent affectorAgent, int damage, in MissionWeapon affectorWeapon)

Parameters

affectorAgent Agent
damage int
affectorWeapon MissionWeapon

OnTickAsAI(float)

public override void OnTickAsAI(float dt)

Parameters

dt float

Panic()

public void Panic()

Retreat(bool)

public void Retreat(bool useCachingSystem = false)

Parameters

useCachingSystem bool

StopRetreating()

public void StopRetreating()

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).