5 protected bool m_bEnabled;
13 [
Attribute(
"1",
"Unique roles can only be present once in a group (Including any attached Master and Slave groups)")]
14 protected bool m_bIsUnique;
28 bool IsValidRole(IEntity character,
int playerID,
SCR_AIGroup group, inout
int roleCallsignIndex, out
bool isUnique)
33 isUnique = m_bIsUnique;
36 if (roleCallsignIndex >= 0 && roleCallsignIndex != GetRoleIndex())
57 masterGroup = group.GetMaster();
65 SCR_CallsignGroupComponent groupCallsignComponent = SCR_CallsignGroupComponent.Cast(group.FindComponent(SCR_CallsignGroupComponent));
68 if (groupCallsignComponent && groupCallsignComponent.IsUniqueRoleInUse(GetRoleIndex()))