7 protected ref array<SCR_MilitaryBaseComponent>
m_aBases = {};
51 int GetBases(out array<SCR_MilitaryBaseComponent> bases)
63 FactionAffiliationComponent factionControl = FactionAffiliationComponent.Cast(
GetOwner().FindComponent(FactionAffiliationComponent));
65 if (!factionControl || factionControl.GetAffiliatedFaction() == faction)
68 factionControl.SetAffiliatedFaction(faction);
83 baseManager.RegisterLogicComponent(
this);
89 super.OnPostInit(owner);
94 SetEventMask(owner, EntityEvent.INIT);
104 baseManager.UnregisterLogicComponent(
this);
106 foreach (SCR_MilitaryBaseComponent base :
m_aBases)
109 base.UnregisterLogicComponent(
this);