Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkGetSpawnedEntityFromVariable.c
Go to the documentation of this file.
3{
4 [Attribute()]
5 string m_sVariableName;
6
7 //------------------------------------------------------------------------------------------------
9 {
11 if (!scenarioFrameworkSystem)
12 return null;
13
14 string value;
15 if (!scenarioFrameworkSystem.GetVariable(m_sVariableName, value))
16 return null;
17
18 IEntity entity = FindEntityByName(value);
19 if (!entity)
20 return null;
21
23 if (!layer)
24 return null;
25
26 return new SCR_ScenarioFrameworkParam<IEntity>(layer.GetSpawnedEntity());
27 }
28}
LayerPresets layer
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
void SCR_ScenarioFrameworkLayerBase(IEntityComponentSource src, IEntity ent, IEntity parent)
proto external Managed FindComponent(typename typeName)
static SCR_ScenarioFrameworkSystem GetInstance()
bool GetVariable(string key, out string value)
Get value of given variable.
SCR_FieldOfViewSettings Attribute