question

Chris Savory avatar image
Chris Savory asked

Is there a way to call GetLeaderboardAroundPlayer from CloudScript?

Hey guys,

The title says it all. I see that GetLeaderboardAroundPlayer is a client function only. Is there any way that I can use that function directly from the server without having to rely on the data passed from the client/user?

Thanks!

10 |1200

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

Citrus Yan avatar image
Citrus Yan answered

You can use the GetLeaderboardAroundUser API to do the same work in CloudScript:

server.GetLeaderboardAroundUser(...)
10 |1200

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

brandon@uprootstudios.com avatar image
brandon@uprootstudios.com answered

The Server API has GetLeaderboardAroundUser that you can use in CloudScript I'd assume

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.