question

Planet 316 avatar image
Planet 316 asked

GetLeaderboard start at bottom

Is there a way to use the server.GetLeaderboard call to start at the bottom of the list without making the call to return all entries for a given stat? If we had a large amount of players (think over ten thousand players, for example) but I want the bottom ten players without having to pull the entire leaderboard and then pull the bottom 10 from that list.

If I'm correct from looking at some of the post on the forum, position 0 is the top player, but since the number of scores might change as your player base grows, just wanted to see if there was an easier way to get the bottom 10.

Thank you for any help provided.

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

·
brendan avatar image
brendan answered

No, in order to find the bottom of the leaderboard, we would have to iterate through all entries. What we could potentially do would be to add an optional order (ascending/descending, with descending being the default, as it's the current behavior) parameter to the leaderboard calls. If that would work for you, please feel free to add it to the Feature Requests forum, so that others can help to get this change prioritized.

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.