Hello,
I'm trying to get the current player's position in the leaderboard from the server by calling
ExecuteCloudScript on the client side and execute a function in a cloud script which looks like this:
handlers.returnPlayerLeaderboardPosition = function (args, context) { var leaderboardPosition = server.GetLeaderboardAroundUser({ PlayFabId: currentPlayerId, StatisticName: "Leaderboard_Name", MaxResultsCount : 1 }); return { messageValue: leaderboardPosition }; };
The client side will an get ExecuteCloudScriptResult in which you can find a bunch of information.
My question is, is there a simple way to extract the position information from the
ExecuteCloudScriptResult?
Thank You!