Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkSetSlotEntity.c
Go to the documentation of this file.
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
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);
36 if (slotAI)
37 slotAI.m_AIGroup = SCR_AIGroup.Cast(entity);
38 }
39}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
override void OnActivate()
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
void SCR_ScenarioFrameworkSlotBase(IEntityComponentSource src, IEntity ent, IEntity parent)
proto external Managed FindComponent(typename typeName)
LogLevel
Enum with severity of the logging message.
Definition LogLevel.c:14
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)
SCR_FieldOfViewSettings Attribute