Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_TutorialConflictCapture5.c
Go to the documentation of this file.
1 [EntityEditorProps(insertable: false)]
3 {
4 };
5 
6 //------------------------------------------------------------------------------------------------
8 {
9  SCR_CampaignTask m_Task;
10 
11  //------------------------------------------------------------------------------------------------
12  override protected void Setup()
13  {
14  if (!GetTaskManager())
15  return;
16 
17  SCR_CampaignMilitaryBaseComponent baseBeauregard = SCR_CampaignMilitaryBaseComponent.Cast(GetGame().GetWorld().FindEntityByName("TownBaseBeauregard").FindComponent(SCR_CampaignMilitaryBaseComponent));
18  if (!baseBeauregard)
19  return;
20 
22  if (!supportClass)
23  return;
24 
25  m_Task = supportClass.GetTask(baseBeauregard, SCR_GameModeCampaign.GetInstance().GetFactionByEnum(SCR_ECampaignFaction.BLUFOR), SCR_CampaignTaskType.CAPTURE);
26 
27  SCR_HintManagerComponent.ShowHint(m_TutorialHintList.GetHint(m_TutorialComponent.GetStage()));
28  }
29 
30  //------------------------------------------------------------------------------------------------
31  override protected bool GetIsFinished()
32  {
33  if (m_Task)
34  return (m_Task.GetAssignee() == SCR_BaseTaskExecutor.GetLocalExecutor());
35  else
36  return true;
37  }
38 };
SCR_BaseCampaignTutorialArlandStage
Definition: SCR_BaseCampaignTutorialArlandStage.c:7
SCR_ECampaignFaction
SCR_ECampaignFaction
Definition: SCR_CampaignFactionManager.c:130
EntityEditorProps
enum EQueryType EntityEditorProps(category:"GameScripted/Sound", description:"THIS IS THE SCRIPT DESCRIPTION.", color:"0 0 255 255")
Definition: SCR_AmbientSoundsComponent.c:12
m_Task
SCR_EditableTaskComponentClass m_Task
Editable SCR_BaseTask.
SCR_CampaignTaskSupportEntity
Definition: SCR_CampaignTaskSupportEntity.c:8
GetGame
ArmaReforgerScripted GetGame()
Definition: game.c:1424
SCR_TutorialConflictCapture5
Definition: SCR_TutorialConflictCapture5.c:7
FindEntityByName
IEntity FindEntityByName(string name)
Definition: SCR_ScenarioFrameworkActionsGetters.c:40
SCR_TutorialConflictCapture5Class
Definition: SCR_TutorialConflictCapture5.c:2
SCR_GameModeCampaign
void SCR_GameModeCampaign(IEntitySource src, IEntity parent)
Definition: SCR_GameModeCampaign.c:1927
SCR_CampaignTask
Definition: SCR_CampaignTask.c:7
SCR_CampaignTaskType
SCR_CampaignTaskType
Definition: SCR_CampaignTaskType.c:2
GetTaskManager
SCR_BaseTaskManager GetTaskManager()
Definition: SCR_BaseTaskManager.c:7
SCR_BaseCampaignTutorialArlandStageClass
Definition: SCR_BaseCampaignTutorialArlandStage.c:2
SCR_BaseTaskExecutor
Definition: SCR_BaseTaskExecutor.c:7
SCR_CampaignMilitaryBaseComponent
Definition: SCR_CampaignMilitaryBaseComponent.c:38