readJoinHint
readJoinHint(
player):JoinHintResult|null
What the player’s latest join carried for the room to read, such as the
house a share link names, or the portal a teleport left by; null for a join
that carried none, and for one whose name the game does not declare. Place
the character from onPlayerReady, which runs once the player’s save
restored, so a saved position does not move the character back. A page back
within the player’s hold, a link opened in the tab the player plays in among
them, takes the held player back with no new hint. The id comes from a link
anyone can edit: check it names a thing the player may reach, with
readWorldStanding and the game’s own rule, before placing the
character there.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
player |
PlayerEntity |
Returns
Section titled “Returns”JoinHintResult | null
Example
Section titled “Example”const hint = readJoinHint(player); if (hint?.name === "house" && hint.id !== null) placeAtHouse(step, player, hint.id);