Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkActionOnGroupAgentEntities.c
Go to the documentation of this file.
3{
4 [Attribute(desc: "Group getter")]
5 ref SCR_ScenarioFrameworkGet m_Getter;
6
7 [Attribute(desc: "Actions to be executed on group member entities.")]
8 ref array<ref SCR_ScenarioFrameworkActionBase> m_aActions;
9
10 //------------------------------------------------------------------------------------------------
11 override void OnActivate(IEntity object)
12 {
13 if (!CanActivate())
14 return;
15
16 if (!ValidateInputEntity(object, m_Getter, m_Entity))
17 return;
18
19 AIGroup group = AIGroup.Cast(m_Entity);
20 if (!group)
21 return;
22
23 array<AIAgent> agents = {};
24 group.GetAgents(agents);
25 IEntity controlledEntity;
26
27 foreach (AIAgent agent : agents)
28 {
29 controlledEntity = agent.GetControlledEntity();
30 if (!controlledEntity)
31 continue;
32
33 foreach (SCR_ScenarioFrameworkActionBase action : m_aActions)
34 {
35 action.OnActivate(controlledEntity);
36 }
37 }
38 }
39}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
override void OnActivate()
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
SCR_FieldOfViewSettings Attribute