Find
This function finds a new leaderboard. If the leaderboard does not already exist it will be created and returned.
Syntax
- Leaderboard Find(string name="Hiscore", number type=Leaderboard.Numeric, number sortmode=Leaderboard.Descending, number entries=20)
Parameters
- name: the file path to load the scene from.
- type: the file path to load the scene from.
- sortmode: pointer to a function that will be called for each loaded entity in the scene.
- entries: script function name that will be called for each loaded entity in the scene.
Returns
Returns true if the scene was successfully loaded, otherwise false is returned.