skeldjs
    Preparing search index...

    Class MeetingHud<RoomType>

    Represents a basic networked object in Among Us.

    See NetworkedObjectEvents for events to listen to.

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    components: NetworkedObject<RoomType, any>[]
    dirtyBit: number = 0

    The dirty vote states to be updated on the next fixed update.

    exiled?: Player<RoomType>

    The player that was exiled, if any.

    flags: number

    Flags for this object, see SpawnFlag.

    netId: number

    The net ID of this component.

    ownerId: number

    The ID of the owner of this component.

    player?: Player<RoomType>

    The player that this component belongs to.

    ranOutOfTimeTimeout?: Timeout
    room: RoomType

    The room that this component belongs to.

    spawnType: SpawnType

    The type of object that this component belongs to.

    tie?: boolean

    Whether the vote resulted in a tie.

    voteStates: Map<number, PlayerVoteArea<RoomType>> = ...

    The vote states in the meeting hud.

    Accessors

    Methods

    • Cast a vote on behalf of a user (or yourself). Casting for another player other than the player calling the function is a host-only operation on official servers.

      Parameters

      Returns Promise<void>

      // Make everyone vote a certain player.
      for ([ clientId, player ] of room.players) {
      if (player !== suspect) {
      room.meetinghud.castVote(player, suspect);
      }
      }
    • End the meeting with specified results. This is a host-only operation on official servers.

      Parameters

      • tie: boolean = false

        Whether this meeting resulted in a tie of votes.

      • Optionalexiled: PlayerResolvable

        The player that was ejected, if any.

      Returns Promise<void>