Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkLayerTaskDeliver.c
Go to the documentation of this file.
1[EntityEditorProps(category: "GameScripted/ScenarioFramework/Layer", description: "")]
5
6class SCR_ScenarioFrameworkLayerTaskDeliver : SCR_ScenarioFrameworkLayerTask
7{
8 [Attribute(desc: "Name of the task in list of tasks after item is possessed.", category: "Task")]
9 protected string m_sTaskTitleUpdated;
10
11 [Attribute(desc: "Description of the task after item is possessed", category: "Task")] //TODO: make config, memory
12 protected string m_sTaskDescriptionUpdated;
13
14 [Attribute(defvalue: "30", desc: "Delay in seconds for Intel map marker when it is dropped on the ground", params: "0 6000 1", category: "Task")]
15 protected int m_iIntelMapMarkerUpdateDelay;
16
17 protected IEntity m_DeliverPoint;
18
19 //------------------------------------------------------------------------------------------------
21 void SetDeliveryPointEntity(IEntity entity)
22 {
23 m_DeliverPoint = entity;
24 }
25
26 //------------------------------------------------------------------------------------------------
29 {
30 return m_DeliverPoint;
31 }
32
33 //------------------------------------------------------------------------------------------------
36 {
37 return m_iIntelMapMarkerUpdateDelay;
38 }
39
40 //------------------------------------------------------------------------------------------------
45 override void RestoreToDefault(bool includeChildren = false, bool reinitAfterRestoration = false, bool affectRandomization = true, bool deleteSpawnedEntities = true)
46 {
47 m_DeliverPoint = null;
48
49 super.RestoreToDefault(includeChildren, reinitAfterRestoration, affectRandomization, deleteSpawnedEntities);
50 }
51
52 //------------------------------------------------------------------------------------------------
54 override void SetupTask()
55 {
56 super.SetupTask();
57
58 if (!m_Task || !m_DeliverPoint)
59 return;
60
61 SCR_TaskDeliver.Cast(m_Task).SetDeliveryTrigger(SCR_BaseTriggerEntity.Cast(m_DeliverPoint));
62 }
63
64 //------------------------------------------------------------------------------------------------
67 {
68 if (!m_sTaskTitleUpdated.IsEmpty())
69 m_Task.SetTaskName(m_sTaskTitleUpdated);
70 if (!m_sTaskDescriptionUpdated.IsEmpty())
71 m_Task.SetTaskDescription(m_sTaskDescriptionUpdated);
72 }
73}
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
IEntity GetDeliveryPointEntity()
void UpdateTaskTitleAndDescription()
Updates task title and description if provided.
void RestoreToDefault()
SCR_EditableTaskComponentClass m_Task
Editable SCR_BaseTask.
SCR_FieldOfViewSettings Attribute