Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_Tutorial_Driving_END.c
Go to the documentation of this file.
1
[
EntityEditorProps
(insertable:
false
)]
2
class
SCR_Tutorial_Driving_ENDClass
:
SCR_BaseTutorialStageClass
3
{
4
};
5
6
//------------------------------------------------------------------------------------------------
7
class
SCR_Tutorial_Driving_END
:
SCR_BaseTutorialStage
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
};
GetGame
ArmaReforgerScripted GetGame()
Definition
game.c:1398
EntityEditorProps
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.
Definition
SCR_CompassComponent.c:10
IEntity::IEntity
void IEntity(IEntitySource src, IEntity parent)
protected script Constructor
IEntity::FindComponent
proto external Managed FindComponent(typename typeName)
SCR_BaseTutorialStageClass
Definition
SCR_BaseTutorialStage.c:3
SCR_BaseTutorialStage
Definition
SCR_BaseTutorialStage.c:8
SCR_BaseTutorialStage::m_sLastFinishedEvent
string m_sLastFinishedEvent
Definition
SCR_BaseTutorialStage.c:21
SCR_BaseTutorialStage::GetDuration
float GetDuration()
Definition
SCR_BaseTutorialStage.c:42
SCR_BaseTutorialStage::m_TutorialComponent
SCR_TutorialGamemodeComponent m_TutorialComponent
Definition
SCR_BaseTutorialStage.c:29
SCR_BaseTutorialStage::PlayNarrativeCharacterStage
void PlayNarrativeCharacterStage(string characterName, int stage)
Definition
SCR_BaseTutorialStage.c:510
SCR_Tutorial_Driving_ENDClass
Definition
SCR_Tutorial_Driving_END.c:3
SCR_Tutorial_Driving_END
Definition
SCR_Tutorial_Driving_END.c:8
SCR_Tutorial_Driving_END::Setup
void Setup()
Definition
SCR_Tutorial_Driving_END.c:10
SCR_Tutorial_Driving_END::GetIsFinished
override bool GetIsFinished()
Definition
SCR_Tutorial_Driving_END.c:29
scripts
Game
GameMode
Tutorial
Stages
DrivingSimple
SCR_Tutorial_Driving_END.c
Generated by
1.17.0