#You have to attach a component to the
1 messages · Page 1 of 1 (latest)
If doing a call from the server to clients based on their faction affiliation you will need to get the faction affiliation manager and get the player list through this, and then get the player controller components. I don't recall the specifics and my workbench is bugged right now, however you will probably figure it out by typing GetGame(). and looking through the dropdown list of members .
Actually you will need to get an array of playerIds with GetGame().GetPlayerManager().GetPlayers()
And loop through that list with FactionAffiliationComponent.Cast(GetGame().GetPlayerManager().GetPlayerController(playerID).FindComponent(FactionAffiliationComponent)).GetAffiliatedFaction()