Tile - YServerData - Get Position – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}")
 
(One intermediate revision by one other user not shown)
Line 28: Line 28:


Player leaderboard information
Player leaderboard information
=== Availability ===
[[Ylands:Tile Availability - Server|Server]]


=== Description ===
=== Description ===
Line 36: Line 40:
----
----
{{Navbox/Ylands}}
{{Navbox/Ylands}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}


[[Category: Instructions]]
[[Category: Instructions]]

Latest revision as of 15:27, 24 November 2023

Get Position(Player, Scope, Leaderboard, Period, On result)

YlandsTile-1012.png

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

Server

Description

Returns leaderbord info of target player, which can be then parsed for more data.