Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_TutorialConflictCapture8.c
Go to the documentation of this file.
1 [EntityEditorProps(insertable: false)]
3 {
4 };
5 
6 //------------------------------------------------------------------------------------------------
8 {
10 
11  //------------------------------------------------------------------------------------------------
12  override protected void Setup()
13  {
14  RegisterWaypoint("TownBaseBeauregard");
15  m_fWaypointHeightOffset = 0;
16  m_bCheckWaypoint = false;
17 
18  foreach (SCR_FiringRangeTarget target : m_TutorialComponent.GetAllTargets())
19  {
20  if (target.GetSetDistance() == 200)
21  target.SetState(ETargetState.TARGET_UP);
22  }
23 
24  SCR_HintManagerComponent.HideHint();
25  SCR_PopUpNotification.GetInstance().PopupMsg("#AR-Tutorial_Popup_Title-UC", 20, text2: "#AR-Tutorial_Popup_Enemies", category: SCR_EPopupMsgFilter.TUTORIAL);
26 
27  SCR_HintManagerComponent.HideHint();
28  SCR_HintManagerComponent.ClearLatestHint();
29  PlaySoundSystem("Conflict_HQ");
30 
31  m_Base = SCR_CampaignMilitaryBaseComponent.Cast(GetGame().GetWorld().FindEntityByName("TownBaseBeauregard").FindComponent(SCR_CampaignMilitaryBaseComponent));
32  }
33 
34  //------------------------------------------------------------------------------------------------
35  override protected bool GetIsFinished()
36  {
37  if (m_Base)
38  return (m_Base.GetFaction() == SCR_GameModeCampaign.GetInstance().GetFactionByEnum(SCR_ECampaignFaction.BLUFOR));
39  else
40  return true;
41  }
42 };
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
SCR_FiringRangeTarget
Definition: SCR_FiringRangeTarget.c:19
GetGame
ArmaReforgerScripted GetGame()
Definition: game.c:1424
SCR_PopUpNotification
Takes care of dynamic and static onscreen popups.
Definition: SCR_PopupNotification.c:24
FindEntityByName
IEntity FindEntityByName(string name)
Definition: SCR_ScenarioFrameworkActionsGetters.c:40
ETargetState
ETargetState
Definition: SCR_FiringRangeTarget.c:7
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_TutorialConflictCapture8
Definition: SCR_TutorialConflictCapture8.c:7
SCR_BaseCampaignTutorialArlandStageClass
Definition: SCR_BaseCampaignTutorialArlandStage.c:2
SCR_TutorialConflictCapture8Class
Definition: SCR_TutorialConflictCapture8.c:2
SCR_EPopupMsgFilter
SCR_EPopupMsgFilter
Definition: SCR_PopupNotification.c:486
SCR_CampaignMilitaryBaseComponent
Definition: SCR_CampaignMilitaryBaseComponent.c:38
category
params category
Definition: SCR_VehicleDamageManagerComponent.c:180