Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PlayerReportDeadBodyEvent<RoomType>

Emitted when a player reports a dead body of a player, telling the host to begin a meeting.

This event is only emitted if the client is the host and doesn't guarantee that a meeting has started, see PlayerStartMeetingEvent to listen for a meeting actually being started, and regardless of whether the client is the host or not.

Type parameters

  • RoomType: Hostable

Hierarchy

Implements

Index

Properties

Static eventName

eventName: "player.reportbody" = ...

Readonly body

body: "emergency" | PlayerData<RoomType>

canceled

canceled: boolean

eventName

eventName: "player.reportbody" = ...

Readonly message

message: undefined | ReportDeadBodyMessage

The message that this event originated from.

Readonly player

player: PlayerData<RoomType>

The player that this event is for.

Readonly room

room: RoomType

The room or client that the event came from.

Accessors

alteredBody

  • get alteredBody(): "emergency" | PlayerData<RoomType>

Methods

cancel

  • cancel(): void

setBody

  • setBody(body: "emergency" | PlayerData<RoomType>): void

setEmergency

  • setEmergency(): void

Constructors

constructor

Generated using TypeDoc