question

ryandj avatar image
ryandj asked

Reset leaderboard

Is there a way to reset the leader through cloud script rather than using an external cloud to run the admin api?

Leaderboards and Statistics
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

·
Hernando avatar image
Hernando answered

We can't execute Admin API calls via CloudScript and the only way to reset leaderboard by call API is in Admin collection.

So, the answer is No.

Other than this, nothing more than two ways to reset leaderboard:

  1. Configure leaderboard to reset on a pre-determined interval or reset as a manual operation on Game Manager. (more information refer to this).
  2. Write a local script/tool to call Admin API.
1 comment
10 |1200

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

ryandj avatar image ryandj commented ·

OK thanks alot I worked around it setting all stats to 0 and reading from a dummy account set to stat1 scores up thanks for the reply

0 Likes 0 ·

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.