Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkGetArrayOfEntities.c
Go to the documentation of this file.
3{
4 [Attribute(desc: "Array of Getters that should return entity or array of entities")]
5 ref array<ref SCR_ScenarioFrameworkGet> m_aGetters;
6
7 protected ref array<IEntity> m_aEntities = {};
8
9 //------------------------------------------------------------------------------------------------
11 {
12 m_aEntities.Clear();
14
15 return new SCR_ScenarioFrameworkParam<array<IEntity>>(m_aEntities);
16 }
17
18 //------------------------------------------------------------------------------------------------
20 void ProcessGetters(out notnull array<IEntity> aEntities)
21 {
22 IEntity entity;
23 array<IEntity> entities = {};
24 foreach (SCR_ScenarioFrameworkGet getter : m_aGetters)
25 {
26 SCR_ScenarioFrameworkParam<IEntity> entityWrapper = SCR_ScenarioFrameworkParam<IEntity>.Cast(getter.Get());
27 if (entityWrapper)
28 {
29 entity = entityWrapper.GetValue();
30 if (entity)
31 aEntities.Insert(entity);
32 }
33 else
34 {
35 SCR_ScenarioFrameworkParam<array<IEntity>> entityArrayWrapper = SCR_ScenarioFrameworkParam<array<IEntity>>.Cast(getter.Get());
36 if (!entityArrayWrapper)
37 continue;
38
39 entities = entityArrayWrapper.GetValue();
40 if (entities && !entities.IsEmpty())
41 aEntities.InsertAll(entities);
42 }
43 }
44 }
45}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
void ProcessGetters(out notnull array< IEntity > aEntities)
SCR_FieldOfViewSettings Attribute