Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_AIHealWaitBehavior.c
Go to the documentation of this file.
1 
6 {
7  ref SCR_BTParam<IEntity> m_HealProvider = new SCR_BTParam<IEntity>(SCR_AIActionTask.ENTITY_PORT);
8 
9  //-------------------------------------------------------------------------------------------------------------------------------
10  void InitParameters(IEntity healProvider)
11  {
12  m_HealProvider.Init(this, healProvider);
13  }
14 
15  //-------------------------------------------------------------------------------------------------------------------------------
16  void SCR_AIHealWaitBehavior(SCR_AIUtilityComponent utility, SCR_AIActivityBase groupActivity, IEntity healProvider, float priorityLevel = PRIORITY_LEVEL_NORMAL)
17  {
18  InitParameters(healProvider);
19  SetPriority(PRIORITY_BEHAVIOR_HEAL_WAIT);
20  m_fPriorityLevel.m_Value = priorityLevel;
21  m_sBehaviorTree = "{AAB70A7FFF8BB63C}AI/BehaviorTrees/Chimera/Soldier/Behavior_HealWait.bt";
22  }
23 
24  override void OnActionCompleted()
25  {
26  super.OnActionCompleted();
27 #ifdef WORKBENCH
28  SCR_AIDebugVisualization.VisualizeMessage(m_Utility.m_OwnerEntity, "Unit healed externally", EAIDebugCategory.INFO, 5);
29 #endif
30  }
31 };
SCR_AIDebugVisualization
Definition: SCR_AIDebugVisualization.c:9
m_fPriorityLevel
float m_fPriorityLevel
Definition: SendGoalMessage.c:3
SCR_AIActivityBase
Definition: SCR_AIActivity.c:1
EAIDebugCategory
EAIDebugCategory
Definition: SCR_AIWorld.c:11
SCR_AIActionTask
Definition: SCR_AIBehaviorTask.c:1
SCR_AIBehaviorBase
Definition: SCR_AIBehavior.c:1
SCR_AIHealWaitBehavior
Definition: SCR_AIHealWaitBehavior.c:5