Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkGetEntityFromSlotManager.c
Go to the documentation of this file.
3{
4 [Attribute()]
5 string m_sLayerName;
6
7 [Attribute(defvalue: "", desc: "Slot Name")]
8 string m_sSlotName;
9
10 //------------------------------------------------------------------------------------------------
12 {
13 IEntity entity = FindEntityByName(m_sLayerName);
14 if (!entity)
15 return null;
16
18 if (!layer)
19 return null;
20
21 entity = layer.GetSpawnedEntity();
22 if (!entity)
23 return null;
24
25 SlotManagerComponent slotManager = SlotManagerComponent.Cast(entity.FindComponent(SlotManagerComponent));
26 if (!slotManager)
27 return null;
28
29 EntitySlotInfo slotInfo = slotManager.GetSlotByName(m_sSlotName);
30 if (!slotInfo)
31 return null;
32
33 return new SCR_ScenarioFrameworkParam<IEntity>(slotInfo.GetAttachedEntity());
34 }
35
36 //------------------------------------------------------------------------------------------------
37
38}
LayerPresets layer
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
void SCR_ScenarioFrameworkLayerBase(IEntityComponentSource src, IEntity ent, IEntity parent)
Adds ability to attach an object to a slot.
proto external Managed FindComponent(typename typeName)
SCR_FieldOfViewSettings Attribute