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_FactionCommanderSignupComponent.c
Go to the documentation of this file.
1
2
[
ComponentEditorProps
(
category
:
"GameScripted/Commander"
, description:
"Add this component to an entity at which players will volunteer for faction commander role via user action."
)]
3
class
SCR_FactionCommanderSignupComponentClass
:
SCR_MilitaryBaseLogicComponentClass
4
{
5
}
6
7
class
SCR_FactionCommanderSignupComponent : SCR_MilitaryBaseLogicComponent
8
{
9
//------------------------------------------------------------------------------------------------
10
override
bool
IsControlledByFaction
(notnull
Faction
faction)
11
{
12
foreach
(SCR_MilitaryBaseComponent
base
:
m_aBases
)
13
{
14
if
(!
SCR_CampaignMilitaryBaseComponent
.Cast(
base
))
15
continue
;
16
17
if
(
base
.GetFaction() == faction)
18
return
true
;
19
}
20
21
return
false
;
22
}
23
}
ComponentEditorProps
enum EAIGroupCombatMode ComponentEditorProps(category:"GameScripted/AI", description:"Component for utility AI system for groups")
Definition
SCR_AIGroupUtilityComponent.c:12
IsControlledByFaction
SCR_FactionCommanderBaseLogicComponentClass SCR_MilitaryBaseLogicComponentClass IsControlledByFaction(notnull Faction faction)
Definition
SCR_FactionCommanderBaseLogicComponent.c:9
base
around base
Definition
SCR_HoldCampaignMilitaryBaseTaskEntity.c:9
m_aBases
SCR_MilitaryBaseLogicComponentClass m_aBases
category
params category
Definition
SCR_VehicleDamageManagerComponent.c:302
Faction
Definition
Faction.c:13
SCR_CampaignMilitaryBaseComponent
Definition
SCR_CampaignMilitaryBaseComponent.c:38
SCR_FactionCommanderSignupComponentClass
Add this component to an entity at which players will volunteer for faction commander role via user a...
Definition
SCR_FactionCommanderSignupComponent.c:4
SCR_MilitaryBaseLogicComponentClass
Definition
SCR_MilitaryBaseLogicComponent.c:2
scripts
Game
FactionCommander
Components
SCR_FactionCommanderSignupComponent.c
Generated by
1.17.0