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_ScenarioFrameworkAIActionToggleLights.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
SCR_ContainerAIActionTitle
()]
2
class
SCR_ScenarioFrameworkAIActionToggleLights
:
SCR_ScenarioFrameworkAIAction
3
{
4
[
Attribute
(defvalue:
"1"
,
desc
:
"Set lights on"
)]
5
bool
m_bSetLightsOn;
6
7
[
Attribute
(defvalue:
"0"
,
desc
:
"Set light lense"
)]
8
int
m_iLensID;
9
10
//------------------------------------------------------------------------------------------------
11
override
void
OnActivate
()
12
{
13
super.OnActivate();
14
15
array<AIAgent> agents = {};
16
m_AIGroup.GetAgents(agents);
17
18
IEntity
agentEntity;
19
foreach
(AIAgent agent : agents)
20
{
21
agentEntity = agent.GetControlledEntity();
22
if
(agentEntity)
23
ProcessEntity
(agentEntity);
24
}
25
}
26
27
//------------------------------------------------------------------------------------------------
28
protected
void
ProcessEntity
(
IEntity
agentEntity)
29
{
30
SCR_FlashlightComponent
flashlightComp;
31
flashlightComp =
SCR_FlashlightComponent
.Cast(agentEntity.
FindComponent
(
SCR_FlashlightComponent
));
32
if
(flashlightComp)
33
{
34
flashlightComp.
OnToggleActive
(m_bSetLightsOn);
35
36
for
(
int
i = 0; i < m_iLensID; i++) {
37
flashlightComp.
CycleThroughLenses
(
true
);
38
}
39
}
40
41
IEntity
child = agentEntity.
GetChildren
();
42
while
(child)
43
{
44
ProcessEntity
(child);
45
child = child.
GetSibling
();
46
}
47
}
48
}
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
IEntity::FindComponent
proto external Managed FindComponent(typename typeName)
IEntity::GetChildren
proto external IEntity GetChildren()
IEntity::GetSibling
proto external IEntity GetSibling()
SCR_ContainerAIActionTitle
Definition
SCR_ContainerAIActionTitle.c:2
SCR_FlashlightComponent
Definition
SCR_FlashlightComponent.c:20
SCR_FlashlightComponent::OnToggleActive
override void OnToggleActive(bool state)
Definition
SCR_FlashlightComponent.c:52
SCR_FlashlightComponent::CycleThroughLenses
void CycleThroughLenses(bool direction)
Definition
SCR_FlashlightComponent.c:87
SCR_ScenarioFrameworkAIAction
Definition
SCR_ScenarioFrameworkAIAction.c:3
SCR_ScenarioFrameworkAIActionToggleLights
Definition
SCR_ScenarioFrameworkAIActionToggleLights.c:3
SCR_ScenarioFrameworkAIActionToggleLights::ProcessEntity
void ProcessEntity(IEntity agentEntity)
Definition
SCR_ScenarioFrameworkAIActionToggleLights.c:28
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
ScenarioFramework
Actions
AIActions
SCR_ScenarioFrameworkAIActionToggleLights.c
Generated by
1.17.0