I am currently working on implementing clan/guild functionality with entity groups. I am wondering if there is a good way to limit the number of members that can be in a group. Say I only want to have a maximum of 20 members of any clan and that number is reached, I don't want any other players to be able to join until a spot opens up.
I am currently planning on having clans be invitation only, so I imagined first calling ListMembership and if the List size is a certain number blocking a player from accepting an invitation. However I am not able to call ListMembership from an entity that is not already a part of the group. Is there a good way to accomplish this that I am missing?