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_AIPerformActionBehavior.c
Go to the documentation of this file.
1
class
SCR_AIPerformActionBehavior :
SCR_AIBehaviorBase
2
{
3
ref SCR_BTParam<SCR_AISmartActionComponent> m_SmartActionComponent =
new
SCR_BTParam<SCR_AISmartActionComponent>(
SCR_AIActionTask
.SMARTACTION_PORT);
4
5
//------------------------------------------------------------------------------------------------------------------------------------------
6
void
SCR_AIPerformActionBehavior(SCR_AIUtilityComponent utility,
SCR_AIActivityBase
groupActivity,
SCR_AISmartActionComponent
smartActionComponent,
float
priority = PRIORITY_BEHAVIOR_PERFORM_ACTION,
float
priorityLevel =
PRIORITY_LEVEL_NORMAL
)
7
{
8
m_sBehaviorTree
=
"AI/BehaviorTrees/Chimera/Soldier/PerformAction.bt"
;
9
SetPriority(priority);
10
m_fPriorityLevel
.m_Value = priorityLevel;
11
m_SmartActionComponent.Init(
this
, smartActionComponent);
12
}
13
14
//---------------------------------------------------------------------------------------------------------------------------------
15
override
int
GetCause
()
16
{
17
return
SCR_EAIBehaviorCause
.SAFE;
18
}
19
20
//------------------------------------------------------------------------------------------------------------------------------------------
21
override
string
GetActionDebugInfo
()
22
{
23
return
this.
ToString
() +
" using smart action "
+ m_SmartActionComponent.m_Value.ToString();
24
}
25
26
//------------------------------------------------------------------------------------------------------------------------------------------
27
override
void
OnActionFailed
()
28
{
29
super.OnActionFailed();
30
if
(m_SmartActionComponent.m_Value)
31
m_SmartActionComponent.m_Value.ReleaseAction();
32
}
33
};
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
OnActionFailed
void OnActionFailed()
Definition
SCR_AIAction.c:205
GetActionDebugInfo
string GetActionDebugInfo()
Definition
SCR_AIAction.c:185
GetCause
int GetCause()
Definition
SCR_AIAction.c:129
SCR_AIActivityBase
void SCR_AIActivityBase(SCR_AIGroupUtilityComponent utility, AIWaypoint relatedWaypoint)
Definition
SCR_AIActivity.c:44
SCR_AIBehaviorBase
void SCR_AIBehaviorBase(SCR_AIUtilityComponent utility, SCR_AIActivityBase groupActivity)
Definition
SCR_AIBehavior.c:23
SCR_EAIBehaviorCause
SCR_EAIBehaviorCause
Definition
SCR_AIBehavior.c:2
SCR_AIActionTask
Definition
SCR_AIBehaviorTask.c:2
SCR_AISmartActionComponent
Definition
SCR_AISmartActionComponent.c:10
ToString
proto external string ToString()
Plain C++ pointer, no weak pointers, no memory management.
scripts
Game
AI
Behavior
SCR_AIPerformActionBehavior.c
Generated by
1.17.0