6 SCR_EditableFactionComponent editableFaction = SCR_EditableFactionComponent.Cast(item);
10 Faction faction = editableFaction.GetFaction();
16 if (!factionManager || !factionManager.CanChangeFactionsPlayable())
19 vector value = Vector(scrFaction.IsPlayable(), factionManager.GetFactionIndex(faction), 0);
23 override void WriteVariable(Managed item,
SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager,
int playerID)
28 SCR_EditableFactionComponent editableFaction = SCR_EditableFactionComponent.Cast(item);
32 editableFaction.SetFactionPlayableServer(var.GetBool());
35 SCR_NotificationsComponent.SendToEveryone(
ENotification.EDITOR_ATTRIBUTES_FACTION_CHANGED, playerID);