question

emreedemir avatar image
emreedemir asked

Getting other player membership of groups

İ 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.

Player DataLeaderboards and StatisticsShared Group Data
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Rick Chen avatar image
Rick Chen answered

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.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.