5 override bool IsValidRole(IEntity character,
int playerID,
SCR_AIGroup group, inout
int roleCallsignIndex, out
bool isUnique)
10 if (!super.IsValidRole(character, playerID, group, roleCallsignIndex, isUnique))
13 if (HasRadio(character))
15 roleCallsignIndex = GetRoleIndex();
23 protected bool HasRadio(notnull IEntity character)
25 EquipedLoadoutStorageComponent loadoutStorage = EquipedLoadoutStorageComponent.Cast(character.FindComponent(EquipedLoadoutStorageComponent));
30 return (backpack && backpack.FindComponent(SCR_RadioComponent));
34 override int GetRoleIndex()