8 protected FactionKey m_sOwnerFactionKey;
10 protected Faction m_OwnerFaction;
16 void SetOwnerFaction(
Faction faction)
21 override bool ScriptedEntityFilterForQuery(IEntity ent)
26 FactionAffiliationComponent factionAffiliation = FactionAffiliationComponent.Cast(ent.FindComponent(FactionAffiliationComponent));
27 return factionAffiliation && factionAffiliation.GetAffiliatedFaction() ==
m_OwnerFaction;
29 override protected void EOnInit(IEntity owner)
31 FactionManager factionManager =
GetGame().GetFactionManager();
37 SetEventMask(EntityEvent.INIT);