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
agentAgent
AIDefendGameObjectEnable(Agent, UsableMissionObject, IDetachment)
public static void AIDefendGameObjectEnable(this Agent agent, UsableMissionObject usedObject, IDetachment detachment)
Parameters
agentAgentusedObjectUsableMissionObjectdetachmentIDetachment
AIDefendGameObjectIsEnabled(Agent)
public static bool AIDefendGameObjectIsEnabled(this Agent agent)
Parameters
agentAgent
Returns
AIInterestedInAnyGameObject(Agent)
public static bool AIInterestedInAnyGameObject(this Agent agent)
Parameters
agentAgent
Returns
AIInterestedInGameObject(Agent, UsableMissionObject)
public static bool AIInterestedInGameObject(this Agent agent, UsableMissionObject usableMissionObject)
Parameters
agentAgentusableMissionObjectUsableMissionObject
Returns
AIMoveToGameObjectDisable(Agent)
public static void AIMoveToGameObjectDisable(this Agent agent)
Parameters
agentAgent
AIMoveToGameObjectEnable(Agent, UsableMissionObject, IDetachment, AIScriptedFrameFlags)
public static void AIMoveToGameObjectEnable(this Agent agent, UsableMissionObject usedObject, IDetachment detachment, Agent.AIScriptedFrameFlags scriptedFrameFlags = AIScriptedFrameFlags.NoAttack)
Parameters
agentAgentusedObjectUsableMissionObjectdetachmentIDetachmentscriptedFrameFlagsAgent.AIScriptedFrameFlags
AIMoveToGameObjectIsEnabled(Agent)
public static bool AIMoveToGameObjectIsEnabled(this Agent agent)
Parameters
agentAgent
Returns
AIUseGameObjectDisable(Agent)
public static void AIUseGameObjectDisable(this Agent agent)
Parameters
agentAgent
AIUseGameObjectEnable(Agent)
public static void AIUseGameObjectEnable(this Agent agent)
Parameters
agentAgent
AIUseGameObjectIsEnabled(Agent)
public static bool AIUseGameObjectIsEnabled(this Agent agent)
Parameters
agentAgent
Returns
ChangeMorale(Agent, float)
public static void ChangeMorale(this Agent agent, float delta)
Parameters
GetFollowedUnit(Agent)
public static Agent GetFollowedUnit(this Agent agent)
Parameters
agentAgent
Returns
GetMorale(Agent)
public static float GetMorale(this Agent agent)
Parameters
agentAgent
Returns
IsRetreating(Agent, bool)
public static bool IsRetreating(this Agent agent, bool isComponentAssured = true)
Parameters
Returns
RefreshBehaviorValues(Agent, MovementOrderEnum, ArrangementOrderEnum)
public static void RefreshBehaviorValues(this Agent agent, MovementOrder.MovementOrderEnum movementOrder, ArrangementOrder.ArrangementOrderEnum arrangementOrder)
Parameters
agentAgentmovementOrderMovementOrder.MovementOrderEnumarrangementOrderArrangementOrder.ArrangementOrderEnum
Retreat(Agent, bool)
public static void Retreat(this Agent agent, bool useCachingSystem = false)
Parameters
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
agentAgentbehaviorHumanAIComponent.AISimpleBehaviorKindy1floatx2floaty2floatx3floaty3float
SetBehaviorValueSet(Agent, BehaviorValueSet)
public static void SetBehaviorValueSet(this Agent agent, HumanAIComponent.BehaviorValueSet behaviorValueSet)
Parameters
agentAgentbehaviorValueSetHumanAIComponent.BehaviorValueSet
SetFollowedUnit(Agent, Agent)
public static void SetFollowedUnit(this Agent agent, Agent followedUnit)
Parameters
SetMorale(Agent, float)
public static void SetMorale(this Agent agent, float morale)
Parameters
StopRetreatingMoraleComponent(Agent)
public static void StopRetreatingMoraleComponent(this Agent agent)
Parameters
agentAgent
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).