Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_Tutorial_Seizing_START.c
Go to the documentation of this file.
1[EntityEditorProps(insertable: false)]
5
6//------------------------------------------------------------------------------------------------
8{
9 //------------------------------------------------------------------------------------------------
10 override protected void Setup()
11 {
12 CreateMarkerCustom("CONFLICT_Instructor", SCR_EScenarioFrameworkMarkerCustom.POINT_OF_INTEREST, SCR_EScenarioFrameworkMarkerCustomColor.REFORGER_ORANGE);
13
14 //TODO> We are checking this twice
16 if (logic && !logic.HasPlayerAnyFirearm())
17 m_bFinished = true;
18 else
19 PlayNarrativeCharacterStage("CONFLICT_Instructor_B", 2);
20 }
21
22 //------------------------------------------------------------------------------------------------
23 override bool GetIsFinished()
24 {
25 return m_bFinished || m_sLastFinishedEvent == "SOUND_TUTORIAL_EX_PLAYER_HAS_WEAPON_INSTRUCTOR_B_01" || GetDuration() > 6000;
26 }
27
28 //------------------------------------------------------------------------------------------------
29 override void OnStageFinished()
30 {
32 if (logic && !logic.HasPlayerAnyFirearm())
33 m_TutorialComponent.InsertStage("MISSING_WEAPON");
34
35 super.OnStageFinished();
36 }
37}
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.
SCR_BaseTutorialCourseLogic m_Logic
SCR_MapMarkerBase CreateMarkerCustom(string entityName, SCR_EScenarioFrameworkMarkerCustom icon, SCR_EScenarioFrameworkMarkerCustomColor color, string name=string.Empty)
SCR_TutorialGamemodeComponent m_TutorialComponent
void PlayNarrativeCharacterStage(string characterName, int stage)