Tile - YServerData - Update Score – 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 24: Line 24:


New score value
New score value
=== Availability ===
[[Ylands:Tile Availability - Server|Server]]


=== Description ===
=== Description ===
Line 32: Line 36:
----
----
{{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

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.