Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_Tutorial_CombatEngineering_Move_5.c
Go to the documentation of this file.
1[EntityEditorProps(insertable: false)]
5
6//------------------------------------------------------------------------------------------------
8{
9 //------------------------------------------------------------------------------------------------
10 override protected void Setup()
11 {
12 RegisterWaypoint("WP_CE_PATH5");
13
14 IEntity wpEnt = GetGame().GetWorld().FindEntityByName("WP_CE_PATH6");
15 if (wpEnt)
16 UnregisterWaypoint(wpEnt);
17
19 if (wp)
21 }
22
23 //------------------------------------------------------------------------------------------------
24 override protected void OnStageFinished()
25 {
27 return;
28
29 IEntity wpPos = m_ReachedWaypoint.GetAttachedEntity();
30 if (wpPos.GetName() == "WP_CE_PATH6")
31 m_TutorialComponent.SetStage("StopAndGetOut");
32 else
33 m_TutorialComponent.FinishStage();
34 }
35};
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 string GetName()
void UnregisterWaypoint(IEntity waypointEntity)
SCR_TutorialGamemodeComponent m_TutorialComponent
SCR_Waypoint RegisterWaypoint(string entityName, string title=string.Empty, string icon="MISC")
int m_iMaximumDrawDistance