Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_TutorialNavigation11.c
Go to the documentation of this file.
1 [EntityEditorProps(insertable: false)]
3 {
4 };
5 
6 //------------------------------------------------------------------------------------------------
8 {
9  float m_fAngle;
10  //------------------------------------------------------------------------------------------------
11  override protected void Setup()
12  {
13  m_fConditionCheckPeriod = 1;
14 
15  IEntity lighthousePos = GetGame().GetWorld().FindEntityByName("LighthousePos");
16  m_fAngle = m_TutorialComponent.GetEntityCompassAngle(lighthousePos);
17 
18  SCR_HintManagerComponent.HideHint();
19  SCR_HintManagerComponent.ClearLatestHint();
20  PlaySoundSystem("Navigation_CompassLighthouse", true);
21  HintOnVoiceOver();
22  }
23 
24  //------------------------------------------------------------------------------------------------
25  override protected bool GetIsFinished()
26  {
27  return m_TutorialComponent.IsMyAngleInRange(m_fAngle, 5);
28  }
29 };
SCR_BaseCampaignTutorialArlandStage
Definition: SCR_BaseCampaignTutorialArlandStage.c:7
EntityEditorProps
enum EQueryType EntityEditorProps(category:"GameScripted/Sound", description:"THIS IS THE SCRIPT DESCRIPTION.", color:"0 0 255 255")
Definition: SCR_AmbientSoundsComponent.c:12
SCR_TutorialNavigation11
Definition: SCR_TutorialNavigation11.c:7
GetGame
ArmaReforgerScripted GetGame()
Definition: game.c:1424
SCR_TutorialNavigation11Class
Definition: SCR_TutorialNavigation11.c:2
SCR_BaseCampaignTutorialArlandStageClass
Definition: SCR_BaseCampaignTutorialArlandStage.c:2
m_fAngle
float m_fAngle
Definition: SCR_AIGroupTargetCluster.c:36