Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_AIResupplyActivity.c
Go to the documentation of this file.
1class SCR_AIResupplyActivity : SCR_AIActivityBase
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.m_Value.ToString() + " with ammo type " + m_MagazineWell.m_Value.ToString();
25 }
26};
ref SCR_BTParam< float > m_fPriorityLevel
enum EAIActionFailReason PRIORITY_LEVEL_NORMAL
ResourceName m_sBehaviorTree
string GetActionDebugInfo()
void SCR_AIActivityBase(SCR_AIGroupUtilityComponent utility, AIWaypoint relatedWaypoint)
proto external string ToString()
Plain C++ pointer, no weak pointers, no memory management.