Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

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.

Parameter Type
authority Authority
playerId PlayerId

void

fetchSave(step, friendId);