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

measureLatency

measureLatency(writer, character, step): void

Adds the lag of an action of the player’s that names step, landing at the room’s step now, to the player’s latency. The room measures each shot; a game’s own action that names the step the player’s screen showed may add its own.

Parameter Type
writer Authority
character Entity
step number

void