Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_Tutorial_CombatEngineering_EquipEntrenchingTool.c
Go to the documentation of this file.
1[EntityEditorProps(insertable: false)]
5
6//------------------------------------------------------------------------------------------------
8{
10 protected ResourceName m_sEToolResource = "{6E35D94130954509}Prefabs/Items/Equipment/Accessories/ETool_ALICE/ETool_ALICE_FreeRoamBuilding_Gadget.et";
12 //------------------------------------------------------------------------------------------------
13 override protected void Setup()
14 {
15 SCR_HintManagerComponent.HideHint();
16 SCR_HintManagerComponent.ClearLatestHint();
17
19
20 PlayNarrativeCharacterStage("COMBATENGINEERING_Instructor_E", 3);
21
22 m_SpawnedEntity = GetGame().GetWorld().FindEntityByName("BUILDING_GUNNEST");
23
24 if (m_TutorialComponent.FindPrefabInPlayerInventory(m_sEToolResource))
25 return;
26
27 m_ETool = m_TutorialComponent.SpawnAsset("BUILDING_ETOOL", m_sEToolResource, null, true);
28 RegisterWaypoint(m_ETool, "", "PICKUP");
29 }
30
31 //------------------------------------------------------------------------------------------------
32 override protected bool GetIsFinished()
33 {
34 if (!m_SpawnedEntity)
35 {
36 m_TutorialComponent.SetStage("ENTER_BUILDING_2");
37 return false;
38 }
39
41 return false;
42
45
46 IEntity ent = m_PlayerInventory.GetCurrentItem();
47 if (!ent)
48 return false;
49
50 SCR_CampaignBuildingGadgetToolComponent gadget = SCR_CampaignBuildingGadgetToolComponent.Cast(ent.FindComponent(SCR_CampaignBuildingGadgetToolComponent));
51 return gadget;
52 }
53};
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)
void UnregisterWaypoint(IEntity waypointEntity)
SCR_TutorialGamemodeComponent m_TutorialComponent
SCR_Waypoint RegisterWaypoint(string entityName, string title=string.Empty, string icon="MISC")
void PlayNarrativeCharacterStage(string characterName, int stage)
static IEntity GetMainParent(IEntity entity, bool self=false)