Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_TutorialNavigation9.c
Go to the documentation of this file.
1 [EntityEditorProps(insertable: false)]
3 {
4 };
5 
6 //------------------------------------------------------------------------------------------------
8 {
9  SCR_CharacterInventoryStorageComponent m_PlayerInventory;
10  //------------------------------------------------------------------------------------------------
11  override protected void Setup()
12  {
13  SCR_HintManagerComponent.HideHint();
14  SCR_HintManagerComponent.ClearLatestHint();
15 
16  m_PlayerInventory = SCR_CharacterInventoryStorageComponent.Cast(m_Player.FindComponent(SCR_CharacterInventoryStorageComponent));
17 
18  SCR_MapEntity.GetOnMapClose().Remove(m_TutorialComponent.OnMapClose);
19  SCR_MapEntity.GetOnMapClose().Insert(m_TutorialComponent.OnMapClose);
20 
21  PlaySoundSystem("Navigation_CompassInGameGadget");
22  HintOnVoiceOver();
23  }
24 
25  //------------------------------------------------------------------------------------------------
26  override protected bool GetIsFinished()
27  {
28  if (!m_PlayerInventory)
29  return false;
30 
31  IEntity ent = m_PlayerInventory.GetCurrentItem();
32  if (!ent)
33  return false;
34 
35  SCR_CompassComponent compassComp = SCR_CompassComponent.Cast(ent.FindComponent(SCR_CompassComponent));
36  if (!compassComp)
37  return false;
38 
39  return compassComp;
40  }
41 };
SCR_CompassComponent
Compass component.
Definition: SCR_CompassComponent.c:73
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_TutorialNavigation9
Definition: SCR_TutorialNavigation9.c:7
m_Player
protected ChimeraCharacter m_Player
Definition: SCR_CampaignTutorialComponentArland.c:40
SCR_TutorialNavigation9Class
Definition: SCR_TutorialNavigation9.c:2
SCR_MapEntity
Map entity.
Definition: SCR_MapEntity.c:20
SCR_BaseCampaignTutorialArlandStageClass
Definition: SCR_BaseCampaignTutorialArlandStage.c:2