Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkGetEntityFromSlotManager.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
SCR_ContainerActionTitle
()]
2
class
SCR_ScenarioFrameworkGetEntityFromSlotManager
:
SCR_ScenarioFrameworkGet
3
{
4
[
Attribute
()]
5
string
m_sLayerName;
6
7
[
Attribute
(defvalue:
""
,
desc
:
"Slot Name"
)]
8
string
m_sSlotName;
9
10
//------------------------------------------------------------------------------------------------
11
override
SCR_ScenarioFrameworkParamBase
Get()
12
{
13
IEntity
entity = FindEntityByName(m_sLayerName);
14
if
(!entity)
15
return
null;
16
17
SCR_ScenarioFrameworkLayerBase
layer
=
SCR_ScenarioFrameworkLayerBase
.Cast(entity.
FindComponent
(
SCR_ScenarioFrameworkLayerBase
));
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
}
layer
LayerPresets layer
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
SCR_ScenarioFrameworkLayerBase
void SCR_ScenarioFrameworkLayerBase(IEntityComponentSource src, IEntity ent, IEntity parent)
Definition
SCR_ScenarioFrameworkLayerBase.c:1411
EntitySlotInfo
Adds ability to attach an object to a slot.
Definition
EntitySlotInfo.c:9
IEntity
Definition
IEntity.c:13
IEntity::FindComponent
proto external Managed FindComponent(typename typeName)
SCR_ContainerActionTitle
Definition
SCR_ContainerActionTitle.c:2
SCR_ScenarioFrameworkGetEntityFromSlotManager
Definition
SCR_ScenarioFrameworkGetEntityFromSlotManager.c:3
SCR_ScenarioFrameworkGet
Definition
SCR_ScenarioFrameworkGet.c:3
SCR_ScenarioFrameworkParamBase
Definition
SCR_ScenarioFrameworkParamBase.c:2
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
ScenarioFramework
Actions
ActionGetters
SCR_ScenarioFrameworkGetEntityFromSlotManager.c
Generated by
1.17.0