Tile - YServerData - Update Score – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Update Score(Player, Scope, Leaderboard, Value)

YlandsTile-1011.png

static updateLeaderboardScore(player: YCharacter, dataScope: YServerDataScope, leaderboardUid: String, 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)

score

New score value

Availability

Server

Description

Allows to update player score value automatically for all time periods.