Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_Tutorial_Seizing_Equip_EntrenchingTool.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";
11 protected IEntity m_ETool;
12 //------------------------------------------------------------------------------------------------
13 override protected void Setup()
14 {
15 SCR_HintManagerComponent.HideHint();
16 SCR_HintManagerComponent.ClearLatestHint();
17
19
20 PlayNarrativeCharacterStage("CONFLICT_Instructor_C", 6);
21
22 if (m_TutorialComponent.FindPrefabInPlayerInventory(m_sEToolResource))
23 return;
24
25 m_ETool = m_TutorialComponent.SpawnAsset("CONFLICT_ETOOL", m_sEToolResource, null, true);
26 RegisterWaypoint(m_ETool, "", "PICKUP");
27 }
28
29 //------------------------------------------------------------------------------------------------
30 override protected bool GetIsFinished()
31 {
33 return false;
34
37
38 IEntity ent = m_PlayerInventory.GetCurrentItem();
39 if (!ent)
40 return false;
41
42 SCR_CampaignBuildingGadgetToolComponent gadget = SCR_CampaignBuildingGadgetToolComponent.Cast(ent.FindComponent(SCR_CampaignBuildingGadgetToolComponent));
43 return gadget;
44 }
45};
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)