You can fill an event leaderboard with dummy users and assign random scores to them for testing purposes.
This is intended for debugging use only.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
constfill_Request=newEventLeaderboardDebugFillRequest();fill_Request.id="leaderboard_1";fill_Request.target_count=50;// Optional target cohort size to fill to, otherwise fill to the max cohort size.
constscores_Request=newEventLeaderboardDebugRandomScoresRequest();scores_Request.id="leaderboard_1";scores_Request.min="1";scores_Request.max="100";scores_Request.subscore_min="1";scores_Request.subscore_max="100";// Fills cohort with debug players
constfill_Leaderboard=awaithiroClient.eventLeaderboardDebugFill(session,fill_Request);console.log(fill_Leaderboard);// Sets randomly generated scores between a range for other players (does not change the user's score)
constscores_Leaderboard=awaithiroClient.eventLeaderboardDebugRandomScores(session,scores_Request);console.log(scores_Leaderboard);