9 class SCR_AIBaseUtilityComponent : AIBaseUtilityComponent
13 protected bool m_bEvaluationBreakpoint;
14 protected int m_iDiagCounter = 0;
23 AICommunicationComponent commsComp = GetAIAgent().GetCommunicationComponent();
27 commsComp.RequestBroadcast(msg, receiver);
36 return m_iDiagCounter;
56 m_bEvaluationBreakpoint =
true;
64 SCR_AIInfoBaseComponent infoComp = SCR_AIInfoBaseComponent.Cast(
GetOwner().FindComponent(SCR_AIInfoBaseComponent));
65 infoComp.AddDebugMessage(str, msgType: messageType);
69 protected void DebugLogActionsPriority()
71 array<ref AIActionBase> actions = {};
75 string actionStr = GetActionLogString(action);
76 AddDebugMessage(actionStr);
81 array<AIActionBase> subactions = {};
82 parallelAction.GetSubactions(subactions);
85 string subactionStr =
" " + GetActionLogString(subaction);
86 AddDebugMessage(subactionStr);
98 string _strSuspended =
string.Empty;
99 if (action.GetActionIsSuspended())
100 _strSuspended =
"(S) ";
101 float score = action.Evaluate() + action.EvaluatePriorityLevel();
103 string _strDebugInfo;
105 _strDebugInfo = scrActionBase.GetActionDebugInfo();
107 return string.Format(
" %1%2 %3 %4", _strSuspended, score.ToString(3, 1), action.Type().ToString(), _strDebugInfo);