Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_TutorialConflictCapture21.c
Go to the documentation of this file.
1 [EntityEditorProps(insertable: false)]
3 {
4 };
5 
6 //------------------------------------------------------------------------------------------------
8 {
10  //------------------------------------------------------------------------------------------------
11  override protected void Setup()
12  {
13  IEntity baseEnt = GetGame().GetWorld().FindEntityByName("MainBaseMossHill");
14  if (!baseEnt)
15  return;
16 
17  RegisterWaypoint(baseEnt);
18  m_bCheckWaypoint = false;
20 
21  if (!m_Base)
22  return;
23 
24  SCR_HintManagerComponent.HideHint();
25  SCR_HintManagerComponent.ClearLatestHint();
26  PlaySoundSystem("Conflict_MoveToCapture");
27  HintOnVoiceOver();
28  }
29 
30  //------------------------------------------------------------------------------------------------
31  override protected bool GetIsFinished()
32  {
33  if (!m_Base)
34  return false;
35 
36  return (m_Base.GetFaction() == SCR_GameModeCampaign.GetInstance().GetFactionByEnum(SCR_ECampaignFaction.BLUFOR));
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
GetGame
ArmaReforgerScripted GetGame()
Definition: game.c:1424
SCR_GameModeCampaign
void SCR_GameModeCampaign(IEntitySource src, IEntity parent)
Definition: SCR_GameModeCampaign.c:1927
m_Base
protected SCR_CampaignMilitaryBaseComponent m_Base
Definition: SCR_CampaignServiceCompositionComponent.c:19
SCR_TutorialConflictCapture21
Definition: SCR_TutorialConflictCapture21.c:7
SCR_BaseCampaignTutorialArlandStageClass
Definition: SCR_BaseCampaignTutorialArlandStage.c:2
SCR_TutorialConflictCapture21Class
Definition: SCR_TutorialConflictCapture21.c:2
SCR_CampaignMilitaryBaseComponent
Definition: SCR_CampaignMilitaryBaseComponent.c:38