Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkSlotClearArea.c
Go to the documentation of this file.
1[EntityEditorProps(category: "GameScripted/ScenarioFramework/Slot", description: "")]
5
6class SCR_ScenarioFrameworkSlotClearArea : SCR_ScenarioFrameworkSlotTask
7{
8 [Attribute(desc: "Ignored Faction Keys that won't be used for any calculations for this Slot Clear", category: "Asset")]
9 protected ref array<FactionKey> m_aIgnoredFactionKeys;
10
11 protected bool m_bPreviousTriggerState;
12
13 //------------------------------------------------------------------------------------------------
15 override void FinishInit()
16 {
17 BaseGameTriggerEntity trigger = BaseGameTriggerEntity.Cast(m_Entity);
18 if (trigger)
19 {
20 m_bPreviousTriggerState = trigger.IsPeriodicQueriesEnabled();
21 trigger.EnablePeriodicQueries(false);
22
24 if (factionTrigger && m_aIgnoredFactionKeys)
25 factionTrigger.AddIgnoredFactionKeys(m_aIgnoredFactionKeys);
26
28 if (frameworkTrigger)
29 frameworkTrigger.SetInitSequenceDone(false);
30 }
31
32 super.FinishInit();
33 }
34
35 //------------------------------------------------------------------------------------------------
39 {
40 m_bInitiated = true;
41
42 if (m_ParentLayer)
43 m_ParentLayer.CheckAllChildrenSpawned(this);
44
45 if (!m_Area)
47
48 if (m_Area)
49 {
50 m_Area.GetOnAllChildrenSpawned().Insert(AfterParentAreaChildrenSpawned);
51 m_Area.CheckAllChildrenSpawned(this);
52 }
53
55 }
56
57 //------------------------------------------------------------------------------------------------
61 {
63 {
64 plugin.Init(this);
65 }
66
68
69 if (m_Area)
70 m_Area.GetOnAllChildrenSpawned().Remove(AfterParentAreaChildrenSpawned);
71
72 if (m_Entity)
73 {
74 BaseGameTriggerEntity trigger = BaseGameTriggerEntity.Cast(m_Entity);
75 if (trigger)
76 {
77 trigger.EnablePeriodicQueries(m_bPreviousTriggerState);
78
80 if (frameworkTrigger)
81 frameworkTrigger.SetInitSequenceDone(true);
82 }
83 }
84 }
85}
LayerPresets layer
enum EAITargetInfoCategory m_Entity
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
SCR_ScenarioFrameworkLayerBase m_ParentLayer
ScriptInvokerScenarioFrameworkLayer GetOnAllChildrenSpawned()
void FinishInit()
Initializes children, retrieves them, and spawns them.
SCR_ScenarioFrameworkArea GetParentArea()
void InitActivationActions()
void AfterAllChildrenSpawned(SCR_ScenarioFrameworkLayerBase layer)
void SCR_ScenarioFrameworkLayerBase(IEntityComponentSource src, IEntity ent, IEntity parent)
ref array< ref SCR_ScenarioFrameworkPlugin > m_aPlugins
SCR_ScenarioFrameworkArea m_Area
void AfterParentAreaChildrenSpawned(SCR_ScenarioFrameworkLayerBase layer)
void AddIgnoredFactionKeys(notnull array< FactionKey > ignoredFactionKeys)
void SetInitSequenceDone(bool init)
Sets Init sequence as done or not.
SCR_FieldOfViewSettings Attribute