Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_AIResupplyActivity.c
Go to the documentation of this file.
2 {
3  ref SCR_BTParam<IEntity> m_EntityToResupply = new SCR_BTParam<IEntity>(SCR_AIActionTask.ENTITY_PORT);
4  ref SCR_BTParam<typename> m_MagazineWell = new SCR_BTParam<typename>(SCR_AIActionTask.MAGAZINE_WELL_PORT);
5 
6  //-------------------------------------------------------------------------------------------------------------
7  void InitParameters(IEntity entityToResupply, typename magazineWell, float priorityLevel)
8  {
9  m_EntityToResupply.Init(this, entityToResupply);
10  m_MagazineWell.Init(this, magazineWell);
11  m_fPriorityLevel.Init(this, priorityLevel);
12  }
13 
14  //-------------------------------------------------------------------------------------------------------------
15  void SCR_AIResupplyActivity(SCR_AIGroupUtilityComponent utility, AIWaypoint relatedWaypoint, IEntity ent, typename magazineWell, float priority = PRIORITY_ACTIVITY_RESUPPLY, float priorityLevel = PRIORITY_LEVEL_NORMAL)
16  {
17  InitParameters(ent, magazineWell, priorityLevel);
18  m_sBehaviorTree = "AI/BehaviorTrees/Chimera/Group/ActivityResupply.bt";
19  SetPriority(priority);
20  }
21 
22  override string GetActionDebugInfo()
23  {
24  return this.ToString() + " resupplying unit " + m_EntityToResupply.ValueToString() + " with ammo type " + m_MagazineWell.ValueToString();
25  }
26 };
m_fPriorityLevel
float m_fPriorityLevel
Definition: SendGoalMessage.c:3
SCR_AIActivityBase
Definition: SCR_AIActivity.c:1
SCR_AIResupplyActivity
Definition: SCR_AIResupplyActivity.c:1
SCR_AIActionTask
Definition: SCR_AIBehaviorTask.c:1