M&B: Bannerlord 1.2.7
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
SandBox.Missions.AgentBehaviors.ScriptBehavior Class Reference

Inherits SandBox.Missions.AgentBehaviors.AgentBehavior.

Public Member Functions

delegate bool SelectTargetDelegate (Agent agent, ref Agent targetAgent, ref UsableMachine targetUsableMachine, ref WorldFrame targetFrame)
 
delegate bool OnTargetReachedDelegate (Agent agent, ref Agent targetAgent, ref UsableMachine targetUsableMachine, ref WorldFrame targetFrame)
 
 ScriptBehavior (AgentBehaviorGroup behaviorGroup)
 
bool IsNearTarget (Agent targetAgent)
 
override void Tick (float dt, bool isSimulation)
 
override float GetAvailability (bool isSimulation)
 
override string GetDebugInfo ()
 
- Public Member Functions inherited from SandBox.Missions.AgentBehaviors.AgentBehavior
virtual float GetAvailability (bool isSimulation)
 
virtual void Tick (float dt, bool isSimulation)
 
virtual void ConversationTick ()
 
virtual bool CheckStartWithBehavior ()
 
virtual void OnSpecialTargetChanged ()
 
virtual void SetCustomWanderTarget (UsableMachine customUsableMachine)
 
virtual void OnAgentRemoved (Agent agent)
 
abstract string GetDebugInfo ()
 

Static Public Member Functions

static void AddUsableMachineTarget (Agent ownerAgent, UsableMachine targetUsableMachine)
 
static void AddAgentTarget (Agent ownerAgent, Agent targetAgent)
 
static void AddWorldFrameTarget (Agent ownerAgent, WorldFrame targetWorldFrame)
 
static void AddTargetWithDelegate (Agent ownerAgent, SelectTargetDelegate selectTargetDelegate, OnTargetReachedDelegate onTargetReachedDelegate)
 

Protected Member Functions

override void OnDeactivate ()
 
- Protected Member Functions inherited from SandBox.Missions.AgentBehaviors.AgentBehavior
 AgentBehavior (AgentBehaviorGroup behaviorGroup)
 
virtual void OnActivate ()
 
virtual void OnDeactivate ()
 

Additional Inherited Members

- Public Attributes inherited from SandBox.Missions.AgentBehaviors.AgentBehavior
float CheckTime = 15.0f
 
- Protected Attributes inherited from SandBox.Missions.AgentBehaviors.AgentBehavior
readonly AgentBehaviorGroup BehaviorGroup
 
- Properties inherited from SandBox.Missions.AgentBehaviors.AgentBehavior
AgentNavigator Navigator [get]
 
bool IsActive [get, set]
 
Agent OwnerAgent [get]
 
Mission Mission [get]
 

Constructor & Destructor Documentation

◆ ScriptBehavior()

SandBox.Missions.AgentBehaviors.ScriptBehavior.ScriptBehavior ( AgentBehaviorGroup  behaviorGroup)

Member Function Documentation

◆ SelectTargetDelegate()

delegate bool SandBox.Missions.AgentBehaviors.ScriptBehavior.SelectTargetDelegate ( Agent  agent,
ref Agent  targetAgent,
ref UsableMachine  targetUsableMachine,
ref WorldFrame  targetFrame 
)

◆ OnTargetReachedDelegate()

delegate bool SandBox.Missions.AgentBehaviors.ScriptBehavior.OnTargetReachedDelegate ( Agent  agent,
ref Agent  targetAgent,
ref UsableMachine  targetUsableMachine,
ref WorldFrame  targetFrame 
)

◆ AddUsableMachineTarget()

static void SandBox.Missions.AgentBehaviors.ScriptBehavior.AddUsableMachineTarget ( Agent  ownerAgent,
UsableMachine  targetUsableMachine 
)
static

◆ AddAgentTarget()

static void SandBox.Missions.AgentBehaviors.ScriptBehavior.AddAgentTarget ( Agent  ownerAgent,
Agent  targetAgent 
)
static

◆ AddWorldFrameTarget()

static void SandBox.Missions.AgentBehaviors.ScriptBehavior.AddWorldFrameTarget ( Agent  ownerAgent,
WorldFrame  targetWorldFrame 
)
static

◆ AddTargetWithDelegate()

static void SandBox.Missions.AgentBehaviors.ScriptBehavior.AddTargetWithDelegate ( Agent  ownerAgent,
SelectTargetDelegate  selectTargetDelegate,
OnTargetReachedDelegate  onTargetReachedDelegate 
)
static

◆ IsNearTarget()

bool SandBox.Missions.AgentBehaviors.ScriptBehavior.IsNearTarget ( Agent  targetAgent)

◆ Tick()

override void SandBox.Missions.AgentBehaviors.ScriptBehavior.Tick ( float  dt,
bool  isSimulation 
)
virtual

◆ GetAvailability()

override float SandBox.Missions.AgentBehaviors.ScriptBehavior.GetAvailability ( bool  isSimulation)
virtual

◆ OnDeactivate()

override void SandBox.Missions.AgentBehaviors.ScriptBehavior.OnDeactivate ( )
protectedvirtual

◆ GetDebugInfo()

override string SandBox.Missions.AgentBehaviors.ScriptBehavior.GetDebugInfo ( )
virtual