Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_ScenarioFrameworkTaskArea.c
Go to the documentation of this file.
1 //------------------------------------------------------------------------------------------------
3 {
4 };
5 
6 //------------------------------------------------------------------------------------------------
8 {
9  protected SCR_BaseTriggerEntity m_Trigger;
10 
11  //------------------------------------------------------------------------------------------------
12  override void Init()
13  {
14  super.Init();
15  m_Trigger = SCR_BaseTriggerEntity.Cast(m_Asset);
16  if (!m_Trigger)
17  {
18  if (!m_SupportEntity)
19  return;
20 
21  m_SupportEntity.CancelTask(this.GetTaskID());
22  Print("ScenarioFramework: Trigger not found! Make sure the IDs match in both task and Slot component", LogLevel.WARNING);
23  return;
24  }
25  m_Trigger.GetOnActivate().Insert(OnTriggerActivated);
26  }
27 
28  //------------------------------------------------------------------------------------------------
29  void OnTriggerActivated()
30  {
31  m_SupportEntity.FinishTask(this);
32  }
33 }
SCR_ScenarioFrameworkTaskArea
Definition: SCR_ScenarioFrameworkTaskArea.c:7
SCR_ScenarioFrameworkTaskAreaClass
Definition: SCR_ScenarioFrameworkTaskArea.c:2
SCR_ScenarioFrameworkTask
Definition: SCR_ScenarioFrameworkTask.c:7
SCR_ScenarioFrameworkTaskClass
Definition: SCR_ScenarioFrameworkTask.c:2