Class HumanAIComponent
- Namespace
- TaleWorlds.MountAndBlade
- Assembly
- TaleWorlds.MountAndBlade.dll
public class HumanAIComponent : AgentComponent
- Inheritance
-
HumanAIComponent
- Inherited Members
Constructors
HumanAIComponent(Agent)
public HumanAIComponent(Agent agent)
Parameters
agentAgent
Fields
FormationSpeedAdjustmentEnabled
public static bool FormationSpeedAdjustmentEnabled
Field Value
Properties
FollowedAgent
public Agent FollowedAgent { get; }
Property Value
IsDefending
public bool IsDefending { get; }
Property Value
ShouldCatchUpWithFormation
public bool ShouldCatchUpWithFormation { get; }
Property Value
Methods
AdjustSpeedLimit(Agent, float, bool)
public void AdjustSpeedLimit(Agent agent, float desiredSpeed, bool limitIsMultiplier)
Parameters
DisablePickUpForAgentIfNeeded()
public void DisablePickUpForAgentIfNeeded()
FollowAgent(Agent)
public void FollowAgent(Agent agent)
Parameters
agentAgent
GetCurrentlyDefendingGameObject()
public UsableMissionObject GetCurrentlyDefendingGameObject()
Returns
GetCurrentlyMovingGameObject()
public UsableMissionObject GetCurrentlyMovingGameObject()
Returns
GetDesiredSpeedInFormation(bool)
public float GetDesiredSpeedInFormation(bool isCharging)
Parameters
isChargingbool
Returns
IsInImportantCombatAction()
public bool IsInImportantCombatAction()
Returns
IsInterestedInAnyGameObject()
public bool IsInterestedInAnyGameObject()
Returns
IsInterestedInGameObject(UsableMissionObject)
public bool IsInterestedInGameObject(UsableMissionObject usableMissionObject)
Parameters
usableMissionObjectUsableMissionObject
Returns
MoveToClear()
public void MoveToClear()
MoveToUsableGameObject(UsableMissionObject, IDetachment, AIScriptedFrameFlags)
public void MoveToUsableGameObject(UsableMissionObject usedObject, IDetachment detachment, Agent.AIScriptedFrameFlags scriptedFrameFlags = AIScriptedFrameFlags.NoAttack)
Parameters
usedObjectUsableMissionObjectdetachmentIDetachmentscriptedFrameFlagsAgent.AIScriptedFrameFlags
OnAgentRemoved()
public override void OnAgentRemoved()
OnComponentRemoved()
public override void OnComponentRemoved()
OnDismount(Agent)
public override void OnDismount(Agent mount)
Parameters
mountAgent
OnMount(Agent)
public override void OnMount(Agent mount)
Parameters
mountAgent
OnRetreating()
public override void OnRetreating()
OnTickAsAI(float)
public override void OnTickAsAI(float dt)
Parameters
dtfloat
RefreshBehaviorValues(MovementOrderEnum, ArrangementOrderEnum)
public void RefreshBehaviorValues(MovementOrder.MovementOrderEnum movementOrder, ArrangementOrder.ArrangementOrderEnum arrangementOrder)
Parameters
movementOrderMovementOrder.MovementOrderEnumarrangementOrderArrangementOrder.ArrangementOrderEnum
SetBehaviorParams(AISimpleBehaviorKind, float, float, float, float, float)
public void SetBehaviorParams(HumanAIComponent.AISimpleBehaviorKind behavior, float y1, float x2, float y2, float x3, float y3)
Parameters
behaviorHumanAIComponent.AISimpleBehaviorKindy1floatx2floaty2floatx3floaty3float
SetBehaviorValueSet(BehaviorValueSet)
public void SetBehaviorValueSet(HumanAIComponent.BehaviorValueSet behaviorValueSet)
Parameters
behaviorValueSetHumanAIComponent.BehaviorValueSet
StartDefendingGameObject(UsableMissionObject, IDetachment)
public void StartDefendingGameObject(UsableMissionObject usedObject, IDetachment detachment)
Parameters
usedObjectUsableMissionObjectdetachmentIDetachment
StopDefendingGameObject()
public void StopDefendingGameObject()
SyncBehaviorParamsIfNecessary()
public void SyncBehaviorParamsIfNecessary()
UpdateFormationMovement()
public void UpdateFormationMovement()
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).