Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkActionOnGroupAgentEntities.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
SCR_ContainerActionTitle
()]
2
class
SCR_ScenarioFrameworkActionOnGroupAgentEntities
:
SCR_ScenarioFrameworkActionBase
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
}
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
OnActivate
override void OnActivate()
Definition
SCR_CharacterCommandLoiter.c:31
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
IEntity
Definition
IEntity.c:13
SCR_ContainerActionTitle
Definition
SCR_ContainerActionTitle.c:2
SCR_ScenarioFrameworkActionBase
Definition
SCR_ScenarioFrameworkActionBase.c:3
SCR_ScenarioFrameworkActionOnGroupAgentEntities
Definition
SCR_ScenarioFrameworkActionOnGroupAgentEntities.c:3
SCR_ScenarioFrameworkGet
Definition
SCR_ScenarioFrameworkGet.c:3
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
ScenarioFramework
Actions
SCR_ScenarioFrameworkActionOnGroupAgentEntities.c
Generated by
1.17.0