Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_Tutorial_CombatEngineering_FinishConstruction1.c
Go to the documentation of this file.
1[EntityEditorProps(insertable: false)]
5
6//------------------------------------------------------------------------------------------------
8{
9 SCR_CampaignBuildingCompositionComponent m_CampaignBuildingComponent;
10 //------------------------------------------------------------------------------------------------
11 override protected void Setup()
12 {
13 SCR_HintManagerComponent.HideHint();
14 SCR_HintManagerComponent.ClearLatestHint();
15
16 IEntity bunker = GetGame().GetWorld().FindEntityByName("BUILDING_GUNNEST");
17 if (!bunker)
18 return;
19
20 PlayNarrativeCharacterStage("COMBATENGINEERING_Instructor_E", 4);
21
22 RegisterWaypoint(bunker, "", "BUILD");
23
24 m_CampaignBuildingComponent = SCR_CampaignBuildingCompositionComponent.Cast(bunker.FindComponent(SCR_CampaignBuildingCompositionComponent));
25 }
26
27 //------------------------------------------------------------------------------------------------
28 override protected bool GetIsFinished()
29 {
30 if (!m_CampaignBuildingComponent)
31 {
32 m_TutorialComponent.SetStage("ENTER_BUILDING_2");
33 return false;
34 }
35
36 return m_CampaignBuildingComponent.IsCompositionSpawned();
37 }
38};
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
SCR_Waypoint RegisterWaypoint(string entityName, string title=string.Empty, string icon="MISC")
void PlayNarrativeCharacterStage(string characterName, int stage)