Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_Tutorial_Driving_GETIN.c
Go to the documentation of this file.
1[EntityEditorProps(insertable: false)]
5
6//------------------------------------------------------------------------------------------------
8{
9 //------------------------------------------------------------------------------------------------
10 override protected void Setup()
11 {
12 if (!m_Player.IsInVehicle())
13 {
14 IEntity vehicle = GetGame().GetWorld().FindEntityByName("SmallJeep");
15
16 if (!vehicle)
17 return;
18
19 RegisterWaypoint(vehicle, "", "GETIN");
20 m_TutorialComponent.ChangeVehicleLockState(GetGame().GetWorld().FindEntityByName("SmallJeep"), false);
21 }
22 }
23
24 //------------------------------------------------------------------------------------------------
25 override protected bool GetIsFinished()
26 {
27 if (m_Player.IsInVehicle())
28 return true;
29 else
30 return m_Player.IsInVehicle() && (m_sLastFinishedEvent == "SOUND_TUTORIAL_TA_DRIVING_COURSE_IN_INSTRUCTOR_F_02" || GetDuration() > 6000);
31 }
32};
ArmaReforgerScripted GetGame()
Definition game.c:1398
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.
void IEntity(IEntitySource src, IEntity parent)
protected script Constructor
proto external BaseWorld GetWorld()
SCR_TutorialGamemodeComponent m_TutorialComponent
SCR_Waypoint RegisterWaypoint(string entityName, string title=string.Empty, string icon="MISC")