Whether or not this object
Request for the host to check a color for this player and change it if it's taken.
The color to request.
Request for the host to check a name for this player and append numbers if it's taken.
The name to request.
Mark one of this player's tasks as completed.
The index of the task to complete. Note: this is not the task ID but instead the index of the player's task, as in its position in the PlayerInfo.taskStates array.
Emits a player.completetask
event.
Despawns the component from the room it belongs in.
Murder another a player. This operation can only be called if the player is the impostor on official servers.
Due to technical limitations, this operation cannot be canceled or reverted
without advanced "breaking game", therefore it is out of scope of a single
.revert()
function on the event emitted.
Emits a player.murder
event.
The player to murder.
Remove this player's protection from a guardian angel, if they have one.
Emits a player.removeprotection
event.
This is not networked, so other players will not see this update.
Whether or not this is because of a timeout.
Send a chat message as this player.
Due to technical impossibilities, this event cannot be canceled or reverted.
Emits a player.chat
event.
Send a player chat note for this player, i.e. "player x voted, x remaining.".
Send a quick chat message as this player.
Due to technical impossibilities, this event cannot be canceled or reverted.
Emits a player.quickchat
event.
Update this player's color. This is a host operation on official servers. Use PlayerControl.checkColor if you are calling this as not the host.
Emits a player.checkname
event.
The color to set this player's name to.
Update this player's hat. This is not a host operation unless the client does not own this player.
Emits a player.sethat
event.
The hat to set this player's hat to, see Hat.
Update this player's name. This is a host operation on official servers. Use PlayerControl.checkName if you are calling this as not the host.
Emits a player.setname
event.
The name to set this player's name to.
Update this player's nameplate. This is not a host operation unless the client does not own this player.
Emits a player.setnameplate
event.
The nameplate to set this player's nameplate to, see Nameplate.
Update this player's pet. This is not a host operation unless the client does not own this player.
Emits a player.setpet
event.
The pet to set this player's pet to, see Pet.
Update this player's skin. This is not a host operation unless the client does not own this player.
Emits a player.setskin
event.
The skin to set this player's skin to, see Skin.
Change the counter at the bottom of the screen while in the lobby, usually counting down from 5 to 1. This is a host-only operation on official servers.
Emits a player.setstartcounter
event.
The counter to set to.
Update this player's visor. This is not a host operation unless the client does not own this player.
Emits a player.setvisor
event.
The visor to set this player's visor to, see Visor.
Spawn this component if does not exist in the room it belongs in.
If you're the host, this will immediately begin a meeting Start a meeting and begin the meeting
Emits a player.startmeeting
event.
The body that was reported, or "emergency" if it is an emergency meeting.
The player that called this meeting.
Change the room's settings. Use Hostable.setSettings to pass a partial game objects object. This is a host operation on official servers.
Emits a player.syncsettings
event.
Use the moving platfrom on the map, i.e. the one on Airship.
Emits a movingplatform.playerupdate
event.
The dirty state of this component.
Flags for this object, see SpawnFlag.
The player (i.e. a guardian angel) who has protected this player, if the player is being protected..
Whether the player was just spawned, or was spawned before joining.
The net ID of this component.
The ID of the owner of this component.
The player that this component belongs to.
The player ID of the player.
Whether or not this player has been protected bya guardian angel.
The room that this component belongs to.
The player that this player has shapeshifted as, if any.
The type of object that this component belongs to.
Generated using TypeDoc
Represents a player object for interacting with the game and other players.
See PlayerControlEvents for events to listen to.