Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkSlotPick.c
Go to the documentation of this file.
1[EntityEditorProps(category: "GameScripted/ScenarioFramework/Slot", description: "")]
5
6class SCR_ScenarioFrameworkSlotPick : SCR_ScenarioFrameworkSlotTask
7{
8 //TODO: make title and description as Tuple2
9 [Attribute(desc: "Name of the task in list of tasks (item picked up )", category: "Task")]
10 protected string m_sTaskTitleUpdated1;
11
12 [Attribute(desc: "Description of the task (item picked up)", category: "Task",)] //TODO: make config, memory
13 protected string m_sTaskDescriptionUpdated1;
14
15 [Attribute(desc: "Name of the task in list of tasks (item dropped)", category: "Task")]
16 protected string m_sTaskTitleUpdated2;
17
18 [Attribute(desc: "Description of the task (item dropped)", category: "Task",)]
19 protected string m_sTaskDescriptionUpdated2;
20
21 //------------------------------------------------------------------------------------------------
25 override string GetTaskTitle(int iState = 0)
26 {
27 if (iState == 0)
28 return super.GetTaskTitle();
29 else if (iState == 1)
30 return m_sTaskTitleUpdated1;
31 else if (iState == 2)
32 return m_sTaskTitleUpdated2;
33 else if (iState == 4)
34 return super.GetTaskTitle();
35 else if (iState == 5)
36 return m_sTaskTitleUpdated1;
37 else if (iState == 6)
38 return m_sTaskTitleUpdated2;
39
40 return string.Empty;
41 }
42
43 //------------------------------------------------------------------------------------------------
53
54 //------------------------------------------------------------------------------------------------
58 override string GetTaskDescription(int iState = 0)
59 {
60 if (iState == 0)
61 return super.GetTaskDescription();
62 else if (iState == 1)
63 return m_sTaskDescriptionUpdated1;
64 else if (iState == 2)
65 return m_sTaskDescriptionUpdated2;
66 else if (iState == 4)
67 return super.GetTaskDescription();
68 else if (iState == 5)
69 return m_sTaskDescriptionUpdated1;
70 else if (iState == 6)
71 return m_sTaskDescriptionUpdated2;
72
73 return string.Empty;
74 }
75
76 //------------------------------------------------------------------------------------------------
80 {
81 super.AfterAllChildrenSpawned(this);
82
83 if (!m_Entity || m_bCanBeGarbageCollected)
84 return;
85
86 auto garbageSystem = SCR_GarbageSystem.GetByEntityWorld(m_Entity);
87 if (garbageSystem)
88 garbageSystem.UpdateBlacklist(m_Entity, true);
89 }
90}
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
bool m_bExcludeFromDynamicDespawn
void AfterAllChildrenSpawned(SCR_ScenarioFrameworkLayerBase layer)
void SCR_ScenarioFrameworkLayerBase(IEntityComponentSource src, IEntity ent, IEntity parent)
void DynamicDespawn(SCR_ScenarioFrameworkLayerBase layer)
bool m_bDynamicallyDespawned
string GetTaskDescription()
string GetTaskTitle()
Script entry for garbage system modding.
static SCR_GarbageSystem GetByEntityWorld(IEntity entity)
SCR_FieldOfViewSettings Attribute