Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_CampaignTutorialArlandDrivingAdvanced23.c
Go to the documentation of this file.
1 [EntityEditorProps(insertable: false)]
3 {
4 };
5 
6 //------------------------------------------------------------------------------------------------
8 {
9  //------------------------------------------------------------------------------------------------
10  override protected void Setup()
11  {
12  m_fDuration = 10;
13  StopVehicleSmoke();
14 
15  SCR_HintManagerComponent.ShowHint(m_TutorialHintList.GetHint(m_TutorialComponent.GetStage()));
16  m_TutorialComponent.SetStagesComplete(5, true);
17  if (!m_TutorialComponent.GetVoiceSystem().IsPlaying())
18  PlaySoundSystem("End", true);
19  else
20  GetGame().GetCallqueue().CallLater(PlaySoundSystem, 1000, false, "End", true);
21  }
22 
23  //------------------------------------------------------------------------------------------------
24  protected void StopVehicleSmoke()
25  {
26  Vehicle car = m_TutorialComponent.GetHummer();
27  if (!car)
28  return;
29 
30  array <HitZone> hitzones = {};
31  SCR_DamageManagerComponent damageManager = SCR_DamageManagerComponent.GetDamageManager(car);
32  if (!damageManager)
33  return;
34 
35  damageManager.GetAllHitZones(hitzones);
36 
37  SCR_FlammableHitZone flammableHitZone;
38  foreach (HitZone hitZone : hitzones)
39  {
40  flammableHitZone = SCR_FlammableHitZone.Cast(hitZone);
41  if (flammableHitZone)
42  flammableHitZone.SetFireState(EFireState.NONE);
43  }
44  }
45 };
SCR_BaseCampaignTutorialArlandStage
Definition: SCR_BaseCampaignTutorialArlandStage.c:7
m_fDuration
float m_fDuration
Definition: SendGoalMessage.c:437
EntityEditorProps
enum EQueryType EntityEditorProps(category:"GameScripted/Sound", description:"THIS IS THE SCRIPT DESCRIPTION.", color:"0 0 255 255")
Definition: SCR_AmbientSoundsComponent.c:12
SCR_CampaignTutorialArlandDrivingAdvanced23Class
Definition: SCR_CampaignTutorialArlandDrivingAdvanced23.c:2
HitZone
Definition: HitZone.c:12
GetGame
ArmaReforgerScripted GetGame()
Definition: game.c:1424
SCR_BaseCampaignTutorialArlandStageClass
Definition: SCR_BaseCampaignTutorialArlandStage.c:2
SCR_CampaignTutorialArlandDrivingAdvanced23
Definition: SCR_CampaignTutorialArlandDrivingAdvanced23.c:7
EFireState
EFireState
Definition: SCR_FlammableHitZone.c:1