Tile - YServerData - Set Score – Ylands

From Bohemia Interactive Community
Revision as of 14:26, 24 November 2023 by Lou Montana (talk | contribs) (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Set Score(Player, Scope, Leaderboard, Period, Value)

YlandsTile-1010.png

static setLeaderboardScore(player: YCharacter, dataScope: YServerDataScope, leaderboardUid: String, leaderboardPeriod: YLeaderboardPeriod, score: number): void;

Parameters

player

Target player

dataScope

Whenever you are storing data to Game or Game Set

leaderboardUid

Target leaderboard variable (i.e score)

leaderboardPeriod

Target leaderboard time period

score

New score value

Availability

Server

Description

Allows to set player score value for given time period.