Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_AIResupplyActivity.c
Go to the documentation of this file.
1
class
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
};
m_fPriorityLevel
ref SCR_BTParam< float > m_fPriorityLevel
Definition
SCR_AIAction.c:87
PRIORITY_LEVEL_NORMAL
enum EAIActionFailReason PRIORITY_LEVEL_NORMAL
m_sBehaviorTree
ResourceName m_sBehaviorTree
Definition
SCR_AIAction.c:89
GetActionDebugInfo
string GetActionDebugInfo()
Definition
SCR_AIAction.c:185
SCR_AIActivityBase
void SCR_AIActivityBase(SCR_AIGroupUtilityComponent utility, AIWaypoint relatedWaypoint)
Definition
SCR_AIActivity.c:44
IEntity
Definition
IEntity.c:13
SCR_AIActionTask
Definition
SCR_AIBehaviorTask.c:2
SCR_AIGroupUtilityComponent
Definition
SCR_AIGroupUtilityComponent.c:18
ToString
proto external string ToString()
Plain C++ pointer, no weak pointers, no memory management.
scripts
Game
AI
Behavior
SCR_AIResupplyActivity.c
Generated by
1.17.0