Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkActionBasedOnConditions.c
Go to the documentation of this file.
3{
4 [Attribute(desc: "Action activation conditions")]
5 protected ref array<ref SCR_ScenarioFrameworkActivationConditionBase> m_aActivationConditions;
6
7 [Attribute(defvalue: SCR_EScenarioFrameworkLogicOperators.AND.ToString(), UIWidgets.ComboBox, "Which Boolean Logic will be used for Activation Conditions", "", enums: SCR_EScenarioFrameworkLogicOperatorHelper.GetParamInfo(), category: "Activation")]
9
10 [Attribute(desc: "Actions to be executed if conditions' evaluation is successful.")]
11 ref array<ref SCR_ScenarioFrameworkActionBase> m_aActions;
12
13 [Attribute(desc: "Actions to be executed if conditions' evaluation is failed.")]
14 ref array<ref SCR_ScenarioFrameworkActionBase> m_aFailedActions;
15
16 //------------------------------------------------------------------------------------------------
17 override void OnActivate(IEntity object)
18 {
19 if (!CanActivate())
20 return;
21
23 {
25 {
26 actions.OnActivate(object);
27 }
28 }
29 else
30 {
32 {
33 actions.OnActivate(object);
34 }
35 }
36 }
37
38 //------------------------------------------------------------------------------------------------
39 override array<ref SCR_ScenarioFrameworkActionBase> GetSubActions()
40 {
41 array<ref SCR_ScenarioFrameworkActionBase> allActions = {};
42
44 {
45 allActions.Insert(action);
46 }
47
49 {
50 allActions.Insert(action);
51 }
52
53 return allActions;
54 }
55}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
ref array< ref SCR_ScenarioFrameworkActionBase > m_aActions
override array< ref SCR_ScenarioFrameworkActionBase > GetSubActions()
ref array< ref SCR_ScenarioFrameworkActivationConditionBase > m_aActivationConditions
ref array< ref SCR_ScenarioFrameworkActionBase > m_aFailedActions
SCR_FieldOfViewSettings Attribute