Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_Tutorial_CombatEngineering_BoardVehicle.c
Go to the documentation of this file.
1[EntityEditorProps(insertable: false)]
5
6//------------------------------------------------------------------------------------------------
8{
9 protected Vehicle m_Vehicle;
10 //------------------------------------------------------------------------------------------------
11 override protected void Setup()
12 {
13 SCR_HintManagerComponent.HideHint();
14 SCR_HintManagerComponent.ClearLatestHint();
15
16 m_Vehicle = Vehicle.Cast(GetGame().GetWorld().FindEntityByName("BUILDING_VEHICLE"));
17 if (!m_Vehicle)
18 return;
19
20 PlayNarrativeCharacterStage("COMBATENGINEERING_Instructor_D", 3);
21
22 RegisterWaypoint(m_Vehicle, "", "MOUNTCAR");
23 }
24
25 //------------------------------------------------------------------------------------------------
26 override protected bool GetIsFinished()
27 {
28 if (!m_Vehicle)
29 return false;
30
31 return m_Vehicle.GetPilot() == m_Player;
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.
proto external BaseWorld GetWorld()
SCR_Waypoint RegisterWaypoint(string entityName, string title=string.Empty, string icon="MISC")
void PlayNarrativeCharacterStage(string characterName, int stage)
enum EPhysicsLayerPresets Vehicle
Definition gameLib.c:24