createScoreId
createScoreId(
authority):ScoreId
Draws a delta’s id for a total, carrying the time of the room’s tick,
from the room’s own random stream, so a replay draws the same. The game
keeps it with the event that earned the delta: submitted again within
the hour, the delta adds once; after it, submitScore refuses it as
expired.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
authority |
Authority |
Returns
Section titled “Returns”Example
Section titled “Example”const id = createScoreId(step);submitScore(step, leaderboards.coinsFound, player, { delta: 12, id });