Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkActionRandomAction.c
Go to the documentation of this file.
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}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
override void OnActivate()
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
SCR_FieldOfViewSettings Attribute