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_ScenarioFrameworkActionRandomAction.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
SCR_ContainerActionTitle
()]
2
class
SCR_ScenarioFrameworkActionRandomAction
:
SCR_ScenarioFrameworkActionBase
3
{
4
[
Attribute
(
desc
:
"Upon activation, one random Action will be selected from these Actions"
)]
5
ref array<ref SCR_ScenarioFrameworkActionBase> m_aActions;
6
7
//------------------------------------------------------------------------------------------------
8
override
void
OnActivate
(
IEntity
object
)
9
{
10
if
(!CanActivate())
11
return
;
12
13
if
(!m_aActions || m_aActions.IsEmpty())
14
return
;
15
16
SCR_ScenarioFrameworkActionBase
randomAction = m_aActions.GetRandomElement();
17
if
(randomAction)
18
randomAction.Init(
object
);
19
}
20
21
//------------------------------------------------------------------------------------------------
22
override
array<ref SCR_ScenarioFrameworkActionBase> GetSubActions()
23
{
24
return
m_aActions;
25
}
26
}
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_ScenarioFrameworkActionRandomAction
Definition
SCR_ScenarioFrameworkActionRandomAction.c:3
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
ScenarioFramework
Actions
SCR_ScenarioFrameworkActionRandomAction.c
Generated by
1.17.0