Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_Tutorial_Seizing_Construct_Antenna.c
Go to the documentation of this file.
1
[
EntityEditorProps
(insertable:
false
)]
2
class
SCR_Tutorial_Seizing_Construct_AntennaClass
:
SCR_BaseTutorialStageClass
3
{
4
};
5
6
//------------------------------------------------------------------------------------------------
7
class
SCR_Tutorial_Seizing_Construct_Antenna
:
SCR_BaseTutorialStage
8
{
9
SCR_CampaignBuildingCompositionComponent m_CampaignBuildingComponent;
10
//------------------------------------------------------------------------------------------------
11
override
protected
void
Setup
()
12
{
13
IEntity
bunker =
GetGame
().GetWorld().FindEntityByName(
"BUILDING_ANTENNA"
);
14
if
(!bunker)
15
return
;
16
17
RegisterWaypoint
(bunker,
""
,
"BUILD"
);
18
19
m_CampaignBuildingComponent = SCR_CampaignBuildingCompositionComponent.Cast(bunker.
FindComponent
(SCR_CampaignBuildingCompositionComponent));
20
}
21
22
//------------------------------------------------------------------------------------------------
23
override
protected
void
OnStageFinished
()
24
{
25
IEntity
fakeBase =
GetGame
().GetWorld().FindEntityByName(
"FakeBaseLighthouseNorth"
);
26
if
(fakeBase)
27
{
28
SCR_TutorialFakeBaseComponent fakeBaseComponent = SCR_TutorialFakeBaseComponent.Cast(fakeBase.
FindComponent
(SCR_TutorialFakeBaseComponent));
29
if
(fakeBaseComponent)
30
{
31
//TODO: SUBOPTIMAL
32
fakeBaseComponent.AddLinkName(
"FakeBaseSignalHill"
);
33
fakeBaseComponent.CreateLinks();
34
fakeBaseComponent.m_bAntennaWidgetVisible =
false
;
35
SCR_Enum
.SetFlag(fakeBaseComponent.m_eServices,
SCR_EFakeBaseServices
.RADIO_ANTENNA);
36
}
37
}
38
39
super.OnStageFinished();
40
}
41
42
//------------------------------------------------------------------------------------------------
43
override
protected
bool
GetIsFinished
()
44
{
45
if
(!m_CampaignBuildingComponent)
46
return
false
;
47
48
return
m_CampaignBuildingComponent.IsCompositionSpawned();
49
}
50
};
GetGame
ArmaReforgerScripted GetGame()
Definition
game.c:1398
EntityEditorProps
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.
Definition
SCR_CompassComponent.c:10
SCR_EFakeBaseServices
SCR_EFakeBaseServices
Definition
SCR_EFakeBaseServices.c:2
IEntity::IEntity
void IEntity(IEntitySource src, IEntity parent)
protected script Constructor
IEntity::FindComponent
proto external Managed FindComponent(typename typeName)
SCR_BaseTutorialStageClass
Definition
SCR_BaseTutorialStage.c:3
SCR_BaseTutorialStage
Definition
SCR_BaseTutorialStage.c:8
SCR_BaseTutorialStage::RegisterWaypoint
SCR_Waypoint RegisterWaypoint(string entityName, string title=string.Empty, string icon="MISC")
Definition
SCR_BaseTutorialStage.c:293
SCR_Enum
Definition
SCR_Enum.c:2
SCR_Tutorial_Seizing_Construct_AntennaClass
Definition
SCR_Tutorial_Seizing_Construct_Antenna.c:3
SCR_Tutorial_Seizing_Construct_Antenna
Definition
SCR_Tutorial_Seizing_Construct_Antenna.c:8
SCR_Tutorial_Seizing_Construct_Antenna::OnStageFinished
void OnStageFinished()
Definition
SCR_Tutorial_Seizing_Construct_Antenna.c:23
SCR_Tutorial_Seizing_Construct_Antenna::Setup
void Setup()
Definition
SCR_Tutorial_Seizing_Construct_Antenna.c:11
SCR_Tutorial_Seizing_Construct_Antenna::GetIsFinished
bool GetIsFinished()
Definition
SCR_Tutorial_Seizing_Construct_Antenna.c:43
scripts
Game
GameMode
Tutorial
Stages
Conflict
SCR_Tutorial_Seizing_Construct_Antenna.c
Generated by
1.17.0