İ want to get a groups of player that i know playerTitle id ,for example ,a player in leaderboard ,when i click a player it will show groups of player,whay should i write Policy.
İ want to get a groups of player that i know playerTitle id ,for example ,a player in leaderboard ,when i click a player it will show groups of player,whay should i write Policy.
You could write a CloudScript that calls the ListMembership API for players, which allows a player to check the membership of other players.
For example, the CloudScript could be:
handlers.ListMembershipFromCloudScript = function(args, context)
{
return entity.ListMembership(
{
Entity: {
Id: args.entityId,
Type: "title_player_account",
TypeString: "title_player_account"
}
}
);
}
And you can pass the entity id as the function argument.
2 People are following this question.