Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_AIFireteamsClusterActivity.c
Go to the documentation of this file.
1
5
7{
9
10 //------------------------------------------------------------------------------------
11 void SCR_AIFireteamsClusterActivity(SCR_AIGroupUtilityComponent utility, AIWaypoint relatedWaypoint, notnull SCR_AITargetClusterState clusterState)
12 {
13 m_ClusterState = clusterState;
14
16 }
17
18 //------------------------------------------------------------------------------------
20 {
21 if (m_Utility)
22 m_Utility.m_Perception.GetOnTargetClusterDeleted().Remove(Event_OnTargetClusterStateDeleted);
23 }
24
25 //------------------------------------------------------------------------------------
27 {
28 if (s != m_ClusterState)
29 return;
30
31 #ifdef AI_DEBUG
32 AddDebugMessage("Target cluster doesn't exist any more, activity is complete");
33 #endif
34
35 // Group either forgot about it, or it was destroyed
36 Complete();
37 }
38}
enum SCR_EAIActivityCause m_Utility
void SCR_AITargetClusterState(SCR_AIGroupTargetCluster cluster)
void SCR_AIFireteamsActivity(SCR_AIGroupUtilityComponent utility, AIWaypoint relatedWaypoint,)
void SCR_AIFireteamsClusterActivity(SCR_AIGroupUtilityComponent utility, AIWaypoint relatedWaypoint, notnull SCR_AITargetClusterState clusterState)
void Event_OnTargetClusterStateDeleted(SCR_AITargetClusterState s)
ScriptInvokerBase< SCR_AIOnTargetClusterStateDeleted > GetOnTargetClusterDeleted()
ref SCR_AIGroupPerception m_Perception