leaderboardsRequestUploadScoreKeepBest: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " " to " ")
m (formatting)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma3
|game1= arma3


|1.42
|version1= 1.42


|gr1= LeaderBoards
|gr1= LeaderBoards


| Starts async. operation to upload score to board with given name, value is only stored to board if it is better than one already in the board. The details array is optional. The board has to be initialized before the call.
|descr= Starts async. operation to upload score to board with given name, value is only stored to board if it is better than one already in the board. The details array is optional. The board has to be initialized before the call.


| '''leaderboardsRequestUploadScoreKeepBest''' [boardName, score, [details]]
|s1= '''leaderboardsRequestUploadScoreKeepBest''' [boardName, score, details]


|p1= boardname: [[String]] -
|p1= boardname: [[String]]


|p2= score: [[Number]] -
|p2= score: [[Number]]


|p3= details: [[Array]] (optional) -
|p3= details: [[Array]] (optional) - Array of [[Number|numbers]]


| [[Boolean]]
|r1= [[Boolean]]


|x1= <code>[[leaderboardsRequestUploadScoreKeepBest]] ["TT01", 1234, [5,6,7,8]]</code>
|x1= <code>[[leaderboardsRequestUploadScoreKeepBest]] ["TT01", 1234, [5,6,7,8]]</code>
|seealso= [[leaderboardsRequestUploadScore]]
}}
}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Revision as of 08:35, 12 April 2021

Hover & click on the images for description

Description

Description:
Starts async. operation to upload score to board with given name, value is only stored to board if it is better than one already in the board. The details array is optional. The board has to be initialized before the call.
Groups:
LeaderBoards

Syntax

Syntax:
leaderboardsRequestUploadScoreKeepBest [boardName, score, details]
Parameters:
boardname: String
score: Number
details: Array (optional) - Array of numbers
Return Value:
Boolean

Examples

Example 1:
leaderboardsRequestUploadScoreKeepBest ["TT01", 1234, [5,6,7,8]]

Additional Information

See also:
leaderboardsRequestUploadScore

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note