3 bool m_bOrdersSent =
false;
10 SetPriority(PRIORITY_ACTIVITY_DEFEND_FROM_CLUSTER);
11 SetIsUniqueInActionQueue(
false);
13 foreach (
auto ft : fireteams)
22 UnregisterFireteam(ft);
26 override void OnActionSelected()
28 super.OnActionSelected();
41 override void OnActionDeselected()
43 super.OnActionDeselected();
48 void SendDefendMessages()
50 AICommunicationComponent comms = m_Utility.m_Owner.GetCommunicationComponent();
54 array<AIAgent> agents = {};
57 ft.GetFireteam().GetMembers(agents);
58 foreach (AIAgent agent : agents)
68 msg.m_RelatedGroupActivity =
this;
69 msg.SetReceiver(agent);
70 comms.RequestBroadcast(msg, agent);
76 void SendCancelMessages()
78 AICommunicationComponent comms = m_Utility.m_Owner.GetCommunicationComponent();
82 array<AIAgent> agents = {};
85 ft.GetFireteam().GetMembers(agents);
86 foreach (AIAgent agent : agents)
92 msgCancel.SetReceiver(agent);
93 comms.RequestBroadcast(msgCancel, agent);
99 override string GetDebugPanelText()
102 string str =
"FTs: (";
105 str = str +
string.Format(
"%1, ", m_Utility.m_FireteamMgr.GetFireteamId(ftLock.GetFireteam()));
107 str = str +
string.Format(
") => C: %1", m_Utility.m_Perception.GetTargetClusterStateId(m_ClusterState));