Tile - YServerData - Get Position – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
{{Wiki|stub}}
<!---
THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE.
-->
== Get Position(Player, Scope, Leaderboard, Period, On result) ==
 
[[File:YlandsTile-1012.png]]
 
<pre>static getLeaderboardPosition(player: YCharacter, dataScope: YServerDataScope, leaderboardUid: String, leaderboardPeriod: YLeaderboardPeriod, onResult: (info: YLeaderboardPlayerInfo) =&gt; void): void;</pre>
=== 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
 
=== Description ===
 
Returns leaderbord info of target player, which can be then parsed for more data.




Line 7: Line 39:


[[Category: Instructions]]
[[Category: Instructions]]
[[Category: Ylands 1.6]]

Revision as of 08:52, 8 July 2021

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

Description

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