Table of Contents

Class AgentComponentExtensions

Namespace
TaleWorlds.MountAndBlade
Assembly
TaleWorlds.MountAndBlade.dll
public static class AgentComponentExtensions
Inheritance
AgentComponentExtensions
Inherited Members

Methods

AIDefendGameObjectDisable(Agent)

public static void AIDefendGameObjectDisable(this Agent agent)

Parameters

agent Agent

AIDefendGameObjectEnable(Agent, UsableMissionObject, IDetachment)

public static void AIDefendGameObjectEnable(this Agent agent, UsableMissionObject usedObject, IDetachment detachment)

Parameters

agent Agent
usedObject UsableMissionObject
detachment IDetachment

AIDefendGameObjectIsEnabled(Agent)

public static bool AIDefendGameObjectIsEnabled(this Agent agent)

Parameters

agent Agent

Returns

bool

AIInterestedInAnyGameObject(Agent)

public static bool AIInterestedInAnyGameObject(this Agent agent)

Parameters

agent Agent

Returns

bool

AIInterestedInGameObject(Agent, UsableMissionObject)

public static bool AIInterestedInGameObject(this Agent agent, UsableMissionObject usableMissionObject)

Parameters

agent Agent
usableMissionObject UsableMissionObject

Returns

bool

AIMoveToGameObjectDisable(Agent)

public static void AIMoveToGameObjectDisable(this Agent agent)

Parameters

agent Agent

AIMoveToGameObjectEnable(Agent, UsableMissionObject, IDetachment, AIScriptedFrameFlags)

public static void AIMoveToGameObjectEnable(this Agent agent, UsableMissionObject usedObject, IDetachment detachment, Agent.AIScriptedFrameFlags scriptedFrameFlags = AIScriptedFrameFlags.NoAttack)

Parameters

agent Agent
usedObject UsableMissionObject
detachment IDetachment
scriptedFrameFlags Agent.AIScriptedFrameFlags

AIMoveToGameObjectIsEnabled(Agent)

public static bool AIMoveToGameObjectIsEnabled(this Agent agent)

Parameters

agent Agent

Returns

bool

AIUseGameObjectDisable(Agent)

public static void AIUseGameObjectDisable(this Agent agent)

Parameters

agent Agent

AIUseGameObjectEnable(Agent)

public static void AIUseGameObjectEnable(this Agent agent)

Parameters

agent Agent

AIUseGameObjectIsEnabled(Agent)

public static bool AIUseGameObjectIsEnabled(this Agent agent)

Parameters

agent Agent

Returns

bool

ChangeMorale(Agent, float)

public static void ChangeMorale(this Agent agent, float delta)

Parameters

agent Agent
delta float

GetFollowedUnit(Agent)

public static Agent GetFollowedUnit(this Agent agent)

Parameters

agent Agent

Returns

Agent

GetMorale(Agent)

public static float GetMorale(this Agent agent)

Parameters

agent Agent

Returns

float

IsRetreating(Agent, bool)

public static bool IsRetreating(this Agent agent, bool isComponentAssured = true)

Parameters

agent Agent
isComponentAssured bool

Returns

bool

RefreshBehaviorValues(Agent, MovementOrderEnum, ArrangementOrderEnum)

public static void RefreshBehaviorValues(this Agent agent, MovementOrder.MovementOrderEnum movementOrder, ArrangementOrder.ArrangementOrderEnum arrangementOrder)

Parameters

agent Agent
movementOrder MovementOrder.MovementOrderEnum
arrangementOrder ArrangementOrder.ArrangementOrderEnum

Retreat(Agent, bool)

public static void Retreat(this Agent agent, bool useCachingSystem = false)

Parameters

agent Agent
useCachingSystem bool

SetAIBehaviorValues(Agent, AISimpleBehaviorKind, float, float, float, float, float)

public static void SetAIBehaviorValues(this Agent agent, HumanAIComponent.AISimpleBehaviorKind behavior, float y1, float x2, float y2, float x3, float y3)

Parameters

agent Agent
behavior HumanAIComponent.AISimpleBehaviorKind
y1 float
x2 float
y2 float
x3 float
y3 float

SetBehaviorValueSet(Agent, BehaviorValueSet)

public static void SetBehaviorValueSet(this Agent agent, HumanAIComponent.BehaviorValueSet behaviorValueSet)

Parameters

agent Agent
behaviorValueSet HumanAIComponent.BehaviorValueSet

SetFollowedUnit(Agent, Agent)

public static void SetFollowedUnit(this Agent agent, Agent followedUnit)

Parameters

agent Agent
followedUnit Agent

SetMorale(Agent, float)

public static void SetMorale(this Agent agent, float morale)

Parameters

agent Agent
morale float

StopRetreatingMoraleComponent(Agent)

public static void StopRetreatingMoraleComponent(this Agent agent)

Parameters

agent Agent

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