fetchSave
fetchSave(
authority,playerId):void
Asks the room for the last committed save of the player playerId, the
player’s id in the game, whether or not the player is in the room.
SaveFetchedEvent answers on a later tick with the game’s own
playerState of the player’s, as its schema reads it. Call it from the
game’s server half, with the room’s step. Where no room runs the
world, nothing answers.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
authority |
Authority |
playerId |
PlayerId |
Returns
Section titled “Returns”void
Example
Section titled “Example”fetchSave(step, friendId);