Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
AIGroup.c
Go to the documentation of this file.
1/*
2===========================================
3Do not modify, this script is generated
4===========================================
5*/
6
11
15
16class AIGroup: AIAgent
17{
18 proto external void AddAgent(AIAgent pAgent);
19 proto external void RemoveAgent(AIAgent pAgent);
20 proto external int GetAgents(notnull out array<AIAgent> outAgents);
24 proto external int GetAgentsCount();
29 proto external int GetServerAgentsCount();
30 proto external void ActivateAllMembers();
31 proto external void DeactivateAllMembers();
33 // waypoints handling
34 proto external void AddWaypoint(AIWaypoint w);
35 proto external void RemoveWaypoint(AIWaypoint w);
36 proto external void AddWaypointAt(AIWaypoint w, int index);
37 proto external void RemoveWaypointAt(int index);
39 proto external void CompleteWaypoint(AIWaypoint w);
40 proto external AIWaypoint GetCurrentWaypoint();
41 proto external int GetWaypoints(out array<AIWaypoint> outWaypoints);
42 proto external AIAgent GetLeaderAgent();
43 proto external IEntity GetLeaderEntity();
44 // Returns center of mass of the group, which is average of all member positions
45 proto external vector GetCenterOfMass();
46 proto external void SetNewLeader(AIAgent newLeader);
47
48 // callbacks
49
50 // WP Events
51 event protected void OnCurrentWaypointChanged(AIWaypoint currentWP, AIWaypoint prevWP);
52 event protected void OnWaypointCompleted(AIWaypoint wp);
53 event protected void OnWaypointAdded(AIWaypoint wp);
54 event protected void OnWaypointRemoved(AIWaypoint wp, bool isCurrentWaypoint);
55 event void OnEmpty();
56 event void OnAgentAdded(AIAgent child);
57 event void OnAgentRemoved(AIAgent child);
58 event void OnLeaderChanged(AIAgent currentLeader, AIAgent prevLeader);
59}
60
SCR_DestructionSynchronizationComponentClass ScriptComponentClass int index
void OnWaypointRemoved(AIWaypoint wp)
void OnAgentAdded()
proto external vector GetCenterOfMass()
proto external void DeactivateAllMembers()
proto external void SetNewLeader(AIAgent newLeader)
proto external IEntity GetLeaderEntity()
proto external void AddWaypointAt(AIWaypoint w, int index)
proto external AIFormationComponent GetFormationComponent()
proto external AIWaypoint GetCurrentWaypoint()
proto external void ActivateAllMembers()
override void OnEmpty()
proto external int GetWaypoints(out array< AIWaypoint > outWaypoints)
proto external AIAgent GetLeaderAgent()
proto external void CompleteWaypoint(AIWaypoint w)
Completes specified waypoint and removes it from the list of waypoints, no need to call RemoveWaypoin...
proto external int GetServerAgentsCount()
void OnWaypointAdded(AIWaypoint wp)
proto external int GetAgents(notnull out array< AIAgent > outAgents)
void OnCurrentWaypointChanged(AIWaypoint _currentWp, AIWaypoint _prevWp)
AIGroupClass AIAgentClass AddAgent(AIAgent pAgent)
void OnWaypointCompleted(AIWaypoint wp)
proto external void RemoveWaypointAt(int index)
proto external void RemoveWaypoint(AIWaypoint w)
proto external void AddWaypoint(AIWaypoint w)
void OnLeaderChanged(AIAgent currentLeader, AIAgent prevLeader)
proto external void RemoveAgent(AIAgent pAgent)
proto external int GetAgentsCount()