Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_Tutorial_Driving_END.c
Go to the documentation of this file.
1[EntityEditorProps(insertable: false)]
5
6//------------------------------------------------------------------------------------------------
8{
9 //------------------------------------------------------------------------------------------------
10 override protected void Setup()
11 {
12 PlayNarrativeCharacterStage("DRIVING_Copilot", 14);
13 SCR_HintManagerComponent.HideHint();
14
15 IEntity car = GetGame().GetWorld().FindEntityByName("SmallJeep");
16
17 if (car)
18 {
19 SCR_VehicleSpawnProtectionComponent comp = SCR_VehicleSpawnProtectionComponent.Cast(car.FindComponent(SCR_VehicleSpawnProtectionComponent));
20
21 if (comp)
22 comp.SetReasonText("#AR-Campaign_Action_CannotEnterVehicle-UC");
23
24 m_TutorialComponent.ChangeVehicleLockState(car, true);
25 }
26 }
27
28 //------------------------------------------------------------------------------------------------
29 override bool GetIsFinished()
30 {
31 return m_sLastFinishedEvent == "SOUND_TUTORIAL_EVE_PLAYER_GETS_OUT_JEEP_INSTRUCTOR_F_01" || GetDuration() > 5000;
32 }
33};
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 Managed FindComponent(typename typeName)
SCR_TutorialGamemodeComponent m_TutorialComponent
void PlayNarrativeCharacterStage(string characterName, int stage)