Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_TutorialOpenFastTravelInterface.c
Go to the documentation of this file.
2{
3 //------------------------------------------------------------------------------------------------
4 override void PerformAction(IEntity pOwnerEntity, IEntity pUserEntity)
5 {
6 MenuManager menuMan = GetGame().GetMenuManager();
7 if (!menuMan)
8 return;
9
10 menuMan.OpenMenu(ChimeraMenuPreset.TutorialFastTravel);
11 }
12
13 //------------------------------------------------------------------------------------------------
14 override bool CanBeShownScript(IEntity user)
15 {
16 SCR_TutorialGamemodeComponent tutorial = SCR_TutorialGamemodeComponent.GetInstance();
17 if (!tutorial)
18 return false;
19
20 if (tutorial.IsFastTraveling())
21 return false;
22
23 SCR_TutorialCourse course = tutorial.GetActiveConfig();
24 if (!course || course.GetCourseType() != SCR_ETutorialCourses.FREE_ROAM & course.GetCourseType() != SCR_ETutorialCourses.OUTRO)
25 return false;
26
27 return true;
28 }
29}
ChimeraMenuPreset
Menu presets.
ArmaReforgerScripted GetGame()
Definition game.c:1398
SCR_ETutorialCourses
proto external MenuBase OpenMenu(ScriptMenuPresetEnum preset, int userId=0, bool unique=false, bool hideParentMenu=true)
SCR_ETutorialCourses GetCourseType()
@ PerformAction