6 class SCR_ScenarioFrameworkSlotDelivery : SCR_ScenarioFrameworkSlotTask
8 [
Attribute(
desc:
"Name of the task layer associated with this deliver point, Doesn't need to be set if nested under task layer Deliver.",
category:
"Task")];
28 Print(
string.Format(
"ScenarioFramework: ->Task->Delivery point %1 doesn't have associated layer attribute set (and is nested outside of its layer task delivery)",
GetOwner().
GetName()), LogLevel.ERROR);
35 entity =
GetGame().GetWorld().FindEntityByName(sLayerName);
46 Print(
string.Format(
"ScenarioFramework: ->Task->Delivery point: Task Layer %1 doesn't exist.", sLayerName), LogLevel.ERROR);
53 override void Init(
SCR_ScenarioFrameworkArea area =
null, SCR_ScenarioFrameworkEActivationType activation = SCR_ScenarioFrameworkEActivationType.SAME_AS_PARENT)
58 super.Init(area, activation);
68 SCR_BaseTriggerEntity trigger = SCR_BaseTriggerEntity.Cast(
m_Entity);
75 if (!activationCondition.Init(
GetOwner()))
85 task.SetLayerTask(m_TaskLayer);
86 task.SetDeliveryTrigger(trigger);
87 task.UpdateTaskTitleAndDescription();
93 Print(
string.Format(
"ScenarioFramework: ->Task->Delivery point: Associated Task Layers are empty"), LogLevel.ERROR);
100 entity =
GetGame().GetWorld().FindEntityByName(sLayerName);
109 task.SetLayerTask(m_TaskLayer);
110 task.SetDeliveryTrigger(trigger);
111 task.UpdateTaskTitleAndDescription();
116 Print(
string.Format(
"ScenarioFramework: ->Task->Delivery point: Task Delivery does not exist for Layer %1", sLayerName), LogLevel.ERROR);