Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_CampaignRadioRegisteringComponent.c
Go to the documentation of this file.
1
class
SCR_CampaignRadioRegisteringComponentClass
: ScriptComponentClass
2
{
3
}
4
5
class
SCR_CampaignRadioRegisteringComponent :
ScriptComponent
6
{
7
//------------------------------------------------------------------------------------------------
8
override
void
OnPostInit
(IEntity owner)
9
{
10
super.OnPostInit(owner);
11
12
if
(!
GetGame
().InPlayMode())
13
return
;
14
15
SetEventMask(owner, EntityEvent.INIT);
16
}
17
18
//------------------------------------------------------------------------------------------------
19
override
void
EOnInit
(IEntity owner)
20
{
21
super.EOnInit(owner);
22
23
IEntity parent = owner.GetParent();
24
25
if
(!parent)
26
return
;
27
28
SCR_CampaignMilitaryBaseComponent
base =
SCR_CampaignMilitaryBaseComponent
.Cast(parent.FindComponent(
SCR_CampaignMilitaryBaseComponent
));
29
30
if
(!base)
31
return
;
32
33
base.RegisterHQRadio(owner);
34
}
35
}
ScriptComponent
SCR_SiteSlotEntityClass ScriptComponent
GetGame
ArmaReforgerScripted GetGame()
Definition:
game.c:1424
OnPostInit
SCR_CampaignRadioRegisteringComponentClass ScriptComponentClass OnPostInit(IEntity owner)
Called on PostInit when all components are added.
Definition:
SCR_CampaignRadioRegisteringComponent.c:8
EOnInit
override void EOnInit(IEntity owner)
Definition:
SCR_CampaignRadioRegisteringComponent.c:19
SCR_CampaignRadioRegisteringComponentClass
Definition:
SCR_CampaignRadioRegisteringComponent.c:1
SCR_CampaignMilitaryBaseComponent
Definition:
SCR_CampaignMilitaryBaseComponent.c:38
scripts_Arma_Reforger_v1.1.0.42
scripts
Game
Campaign
SCR_CampaignRadioRegisteringComponent.c
Generated by
1.8.17