Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_AIPerformActionBehavior.c
Go to the documentation of this file.
1class 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};
ref SCR_BTParam< float > m_fPriorityLevel
enum EAIActionFailReason PRIORITY_LEVEL_NORMAL
ResourceName m_sBehaviorTree
void OnActionFailed()
string GetActionDebugInfo()
int GetCause()
void SCR_AIActivityBase(SCR_AIGroupUtilityComponent utility, AIWaypoint relatedWaypoint)
void SCR_AIBehaviorBase(SCR_AIUtilityComponent utility, SCR_AIActivityBase groupActivity)
SCR_EAIBehaviorCause
proto external string ToString()
Plain C++ pointer, no weak pointers, no memory management.