Tile - YServerData - Get Position – Ylands
Jump to navigation
Jump to search
Get Position(Player, Scope, Leaderboard, Period, On result)
static getLeaderboardPosition(player: YCharacter, dataScope: YServerDataScope, leaderboardUid: String, leaderboardPeriod: YLeaderboardPeriod, onResult: (info: YLeaderboardPlayerInfo) => void): void;
Parameters
player
Target player
dataScope
Whenever you are quering data from Game or Game Set
leaderboardUid
Target leaderboard variable (i.e score)
leaderboardPeriod
Target leaderboard time period
onResult
Player leaderboard information
Availability
Description
Returns leaderbord info of target player, which can be then parsed for more data.