Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_AIHealWaitBehavior.c
Go to the documentation of this file.
1
4
5class SCR_AIHealWaitBehavior : SCR_AIBehaviorBase
6{
7 ref SCR_BTParam<IEntity> m_HealProvider = new SCR_BTParam<IEntity>(SCR_AIActionTask.ENTITY_PORT);
8
9 //---------------------------------------------------------------------------------------------------------------------------------
10 override int GetCause()
11 {
12 return SCR_EAIBehaviorCause.DANGER_MEDIUM;
13 }
14
15 //-------------------------------------------------------------------------------------------------------------------------------
16 void InitParameters(IEntity healProvider)
17 {
18 m_HealProvider.Init(this, healProvider);
19 }
20
21 //-------------------------------------------------------------------------------------------------------------------------------
22 void SCR_AIHealWaitBehavior(SCR_AIUtilityComponent utility, SCR_AIActivityBase groupActivity, IEntity healProvider, float priorityLevel = PRIORITY_LEVEL_NORMAL)
23 {
24 InitParameters(healProvider);
25 SetPriority(PRIORITY_BEHAVIOR_HEAL_WAIT);
26 m_fPriorityLevel.m_Value = priorityLevel;
27 m_sBehaviorTree = "{AAB70A7FFF8BB63C}AI/BehaviorTrees/Chimera/Soldier/Behavior_HealWait.bt";
28 }
29
30 //---------------------------------------------------------------------------------------------------------------------------------
31 override void OnActionCompleted()
32 {
33 super.OnActionCompleted();
34#ifdef WORKBENCH
35 SCR_AIDebugVisualization.VisualizeMessage(m_Utility.m_OwnerEntity, "Unit healed externally", EAIDebugCategory.INFO, 5);
36#endif
37 }
38};
ref SCR_BTParam< float > m_fPriorityLevel
void OnActionCompleted()
enum EAIActionFailReason PRIORITY_LEVEL_NORMAL
ResourceName m_sBehaviorTree
int GetCause()
void SCR_AIActivityBase(SCR_AIGroupUtilityComponent utility, AIWaypoint relatedWaypoint)
enum SCR_EAIActivityCause m_Utility
void SCR_AIBehaviorBase(SCR_AIUtilityComponent utility, SCR_AIActivityBase groupActivity)
SCR_EAIBehaviorCause
EAIDebugCategory
Definition SCR_AIWorld.c:12
static void VisualizeMessage(IEntity entity, string message, EAIDebugCategory category, float showTime, Color color=Color.White, float fontSize=16, bool ignoreCategory=false)