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_CombatEngineering_StopAndGetOut.c
Go to the documentation of this file.
1
[
EntityEditorProps
(insertable:
false
)]
2
class
SCR_Tutorial_CombatEngineering_StopAndGetOutClass
:
SCR_BaseTutorialStageClass
3
{
4
};
5
6
//------------------------------------------------------------------------------------------------
7
class
SCR_Tutorial_CombatEngineering_StopAndGetOut
:
SCR_BaseTutorialStage
8
{
9
protected
Vehicle
m_Car
;
10
protected
vector
m_vWpPos
;
11
12
//------------------------------------------------------------------------------------------------
13
override
protected
void
Setup
()
14
{
15
m_Car
=
Vehicle
.Cast(
GetGame
().
GetWorld
().FindEntityByName(
"BUILDING_VEHICLE"
));
16
IEntity
wpEnt =
GetGame
().GetWorld().FindEntityByName(
"WP_CE_PATH6"
);
17
18
UnregisterWaypoint
(wpEnt);
19
20
SCR_Waypoint
wp =
RegisterWaypoint
(wpEnt,
""
,
"GETOUT"
);
21
if
(wp)
22
m_vWpPos
= wp.
GetPosition
();
23
}
24
25
//------------------------------------------------------------------------------------------------
26
override
protected
bool
GetIsFinished
()
27
{
28
if
(!
m_Car
||
m_vWpPos
==
vector
.Zero)
29
return
false
;
30
31
return
(
m_Car
.GetPilot() !=
m_Player
) && (
vector
.Distance(
m_Car
.GetOrigin(),
m_vWpPos
) <= 6);
32
}
33
34
//------------------------------------------------------------------------------------------------
35
override
protected
void
OnStageFinished
()
36
{
37
if
(
m_TutorialComponent
&&
m_Car
)
38
m_TutorialComponent
.ChangeVehicleLockState(
m_Car
,
true
);
39
40
super.OnStageFinished();
41
}
42
};
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::GetWorld
proto external BaseWorld GetWorld()
SCR_BaseTutorialStageClass
Definition
SCR_BaseTutorialStage.c:3
SCR_BaseTutorialStage
Definition
SCR_BaseTutorialStage.c:8
SCR_BaseTutorialStage::m_Player
ChimeraCharacter m_Player
Definition
SCR_BaseTutorialStage.c:27
SCR_BaseTutorialStage::UnregisterWaypoint
void UnregisterWaypoint(IEntity waypointEntity)
Definition
SCR_BaseTutorialStage.c:270
SCR_BaseTutorialStage::m_TutorialComponent
SCR_TutorialGamemodeComponent m_TutorialComponent
Definition
SCR_BaseTutorialStage.c:29
SCR_BaseTutorialStage::RegisterWaypoint
SCR_Waypoint RegisterWaypoint(string entityName, string title=string.Empty, string icon="MISC")
Definition
SCR_BaseTutorialStage.c:293
SCR_Tutorial_CombatEngineering_StopAndGetOutClass
Definition
SCR_Tutorial_CombatEngineering_StopAndGetOut.c:3
SCR_Tutorial_CombatEngineering_StopAndGetOut
Definition
SCR_Tutorial_CombatEngineering_StopAndGetOut.c:8
SCR_Tutorial_CombatEngineering_StopAndGetOut::GetIsFinished
bool GetIsFinished()
Definition
SCR_Tutorial_CombatEngineering_StopAndGetOut.c:26
SCR_Tutorial_CombatEngineering_StopAndGetOut::OnStageFinished
void OnStageFinished()
Definition
SCR_Tutorial_CombatEngineering_StopAndGetOut.c:35
SCR_Tutorial_CombatEngineering_StopAndGetOut::m_Car
Vehicle m_Car
Definition
SCR_Tutorial_CombatEngineering_StopAndGetOut.c:9
SCR_Tutorial_CombatEngineering_StopAndGetOut::Setup
void Setup()
Definition
SCR_Tutorial_CombatEngineering_StopAndGetOut.c:13
SCR_Tutorial_CombatEngineering_StopAndGetOut::m_vWpPos
vector m_vWpPos
Definition
SCR_Tutorial_CombatEngineering_StopAndGetOut.c:10
SCR_Waypoint
Definition
SCR_Waypoint.c:3
SCR_Waypoint::GetPosition
vector GetPosition()
Get waypoint position. Attached entity is prioritized over static position.
Definition
SCR_Waypoint.c:129
vector
Definition
vector.c:13
Vehicle
enum EPhysicsLayerPresets Vehicle
Definition
gameLib.c:24
scripts
Game
GameMode
Tutorial
Stages
CombatEngineeringCourse
SCR_Tutorial_CombatEngineering_StopAndGetOut.c
Generated by
1.17.0