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_ScenarioFrameworkSetSlotEntity.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
SCR_ContainerActionTitle
()]
2
class
SCR_ScenarioFrameworkSetSlotEntity
:
SCR_ScenarioFrameworkActionBase
3
{
4
[
Attribute
(
desc
:
"Target slot getter"
)];
5
ref
SCR_ScenarioFrameworkGet
m_SlotGetter;
6
7
[
Attribute
(
desc
:
"Entity getter"
)];
8
ref
SCR_ScenarioFrameworkGet
m_EntityGetter;
9
10
//------------------------------------------------------------------------------------------------
11
override
void
OnActivate
(
IEntity
object
)
12
{
13
IEntity
targetSlotEntity;
14
if
(!ValidateInputEntity(
object
, m_SlotGetter, targetSlotEntity))
15
return
;
16
17
IEntity
entity;
18
if
(!ValidateInputEntity(
object
, m_EntityGetter, entity))
19
return
;
20
21
if
(entity == targetSlotEntity)
22
{
23
PrintFormat
(
"ScenarioFramework SCR_ScenarioFrameworkSetSlotEntity: Both target and new entity are same for action %1."
,
this
, level:
LogLevel
.ERROR);
24
return
;
25
}
26
27
SCR_ScenarioFrameworkSlotBase
slot =
SCR_ScenarioFrameworkSlotBase
.Cast(targetSlotEntity.
FindComponent
(
SCR_ScenarioFrameworkSlotBase
));
28
if
(!slot)
29
{
30
PrintFormat
(
"ScenarioFramework SCR_ScenarioFrameworkSetSlotEntity: Target slot entity doesn't have SCR_ScenarioFrameworkSlotBase or inherited component for %1."
,
this
, level:
LogLevel
.ERROR);
31
return
;
32
}
33
34
slot.SetEntity(entity);
35
SCR_ScenarioFrameworkSlotAI
slotAI =
SCR_ScenarioFrameworkSlotAI
.Cast(slot);
36
if
(slotAI)
37
slotAI.m_AIGroup =
SCR_AIGroup
.Cast(entity);
38
}
39
}
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
OnActivate
override void OnActivate()
Definition
SCR_CharacterCommandLoiter.c:31
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
SCR_ScenarioFrameworkSlotBase
void SCR_ScenarioFrameworkSlotBase(IEntityComponentSource src, IEntity ent, IEntity parent)
Definition
SCR_ScenarioFrameworkSlotBase.c:717
IEntity
Definition
IEntity.c:13
IEntity::FindComponent
proto external Managed FindComponent(typename typeName)
SCR_AIGroup
Definition
SCR_AIGroup.c:75
SCR_ContainerActionTitle
Definition
SCR_ContainerActionTitle.c:2
SCR_ScenarioFrameworkActionBase
Definition
SCR_ScenarioFrameworkActionBase.c:3
SCR_ScenarioFrameworkGet
Definition
SCR_ScenarioFrameworkGet.c:3
SCR_ScenarioFrameworkSetSlotEntity
Definition
SCR_ScenarioFrameworkSetSlotEntity.c:3
SCR_ScenarioFrameworkSlotAI
Definition
SCR_ScenarioFrameworkSlotAI.c:12
LogLevel
LogLevel
Enum with severity of the logging message.
Definition
LogLevel.c:14
PrintFormat
proto void PrintFormat(string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL, LogLevel level=LogLevel.NORMAL)
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
ScenarioFramework
Actions
SCR_ScenarioFrameworkSetSlotEntity.c
Generated by
1.17.0