Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_AIPerformActionBehavior.c
Go to the documentation of this file.
2 {
3  ref SCR_BTParam<SCR_AISmartActionComponent> m_SmartActionComponent = new SCR_BTParam<SCR_AISmartActionComponent>(SCR_AIActionTask.SMARTACTION_PORT);
4 
5  //------------------------------------------------------------------------------------------------------------------------------------------
6  void SCR_AIPerformActionBehavior(SCR_AIUtilityComponent utility, SCR_AIActivityBase groupActivity, SCR_AISmartActionComponent smartActionComponent, float priority = PRIORITY_BEHAVIOR_PERFORM_ACTION, float priorityLevel = PRIORITY_LEVEL_NORMAL)
7  {
8  m_sBehaviorTree = "AI/BehaviorTrees/Chimera/Soldier/PerformAction.bt";
9  SetPriority(priority);
10  m_fPriorityLevel.m_Value = priorityLevel;
11  m_SmartActionComponent.Init(this, smartActionComponent);
12  }
13 
14  //------------------------------------------------------------------------------------------------------------------------------------------
15  override string GetActionDebugInfo()
16  {
17  return this.ToString() + " using smart action " + m_SmartActionComponent.ValueToString();
18  }
19 
20  //------------------------------------------------------------------------------------------------------------------------------------------
21  override void OnActionFailed()
22  {
23  super.OnActionFailed();
24  if (m_SmartActionComponent.m_Value)
25  m_SmartActionComponent.m_Value.ReleaseAction();
26  }
27 };
SCR_AISmartActionComponent
Definition: SCR_AISmartActionComponent.c:9
m_fPriorityLevel
float m_fPriorityLevel
Definition: SendGoalMessage.c:3
SCR_AIActivityBase
Definition: SCR_AIActivity.c:1
SCR_AIActionTask
Definition: SCR_AIBehaviorTask.c:1
SCR_AIPerformActionBehavior
Definition: SCR_AIPerformActionBehavior.c:1
SCR_AIBehaviorBase
Definition: SCR_AIBehavior.c:1