This player's player control component.
Whether or not this player is in the game scene.
Whether or not this player is readied up to start the game.
The actual instance of this player's role manager, see PlayerInfo.roleType to know which role this is.
The room that this player object belongs to.
The message stream to be sent on fixed update.
Despawn all components on the player,
Mark as readied up to start the game.
Whether or not the player has fully spawned.
Whether or not this player is a fake player, as in they are entirely client-side and have no real player behind them.
Whether or not the player is the host of the room they belong in.
Whether or not the player is the current client's player.
The player's physics component.
The room-unique player ID of the player.
The player's game information, such as dead/impostor/disconnected states, hats, names, pets, etc.
Shorthand for player.playerInfo.defaultOutfit.name
.
This will return the player's name as it appears in-game, not including the name of the player that they might have shapeshifted into.
The player's movement component.
Generated using TypeDoc
Represents the player of a client connected to the room.
See PlayerDataEvents for events to listen to.