Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkActionSpawnObjectsFromVariable.c
Go to the documentation of this file.
3{
4 [Attribute(defvalue: "", UIWidgets.EditComboBox, desc: "These variables will be checked for object names once the trigger becomes active.")]
5 ref array<string> m_aNameOfVariablesToSpawnObjectsFromOnActivation;
6
7 [Attribute(defvalue: SCR_ScenarioFrameworkEActivationType.ON_TRIGGER_ACTIVATION.ToString(), uiwidget: UIWidgets.ComboBox, "", "", ParamEnumArray.FromEnum(SCR_ScenarioFrameworkEActivationType))]
9
10 //------------------------------------------------------------------------------------------------
11 override void OnActivate(IEntity object)
12 {
13 if (!CanActivate())
14 return;
15
17 if (!scenarioFrameworkSystem)
18 return;
19
20 string value;
21 array <string> names = {};
22 foreach (string variable : m_aNameOfVariablesToSpawnObjectsFromOnActivation)
23 {
24 scenarioFrameworkSystem.GetVariable(variable, value);
25
27 continue;
28
29 names.Insert(value);
30 }
31
32 SpawnObjects(names, m_eActivationType);
33 }
34}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
override void OnActivate()
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
static SCR_ScenarioFrameworkSystem GetInstance()
bool GetVariable(string key, out string value)
Get value of given variable.
static bool IsEmptyOrWhiteSpace(string input)
SCR_FieldOfViewSettings Attribute