Ask a Question

Ask a Question
Back to All

Assume User

Does GetStats/SetStats also does some sort of AssumeUser?

(The AssumeUser method can be used inside a microservice. So an example of setting other player's score would be something like this:

[ClientCallable]
public async Promise SetScoreForPlayer(long playerId, string boardId, double score, Dictionary<string, object> stats)
{
var otherUser = AssumeUser(playerId);
await otherUser.Services.Leaderboards.SetScore(boardId, score, stats);
})