Optional
spawn: booleanOptional
spawn: booleanCast 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.
// Make everyone vote a certain player.
for ([ clientId, player ] of room.players) {
if (player !== suspect) {
room.meetinghud.castVote(player, suspect);
}
}
The player who is voting.
The player to vote for.
Remove someone's vote (usually due to the player they voted for getting disconnected). This is a host-only operation on official servers.
Get a certain component from the object.
The component class to get.
End the meeting with specified results. This is a host-only operation on official servers.
Optional
tie: booleanWhether this meeting resulted in a tie of votes.
Optional
exiled: PlayerDataResolvableThe player that was ejected, if any.
The dirty vote states to be updated on the next fixed update.
Optional
exiledThe player that was exiled, if any.
Flags for this object, see SpawnFlag.
The net ID of this component.
The ID of the owner of this component.
Optional
playerThe player that this component belongs to.
Optional
ranThe room that this component belongs to.
The type of object that this component belongs to.
Optional
tieWhether the vote resulted in a tie.
The vote states in the meeting hud.
Optional
data: HazelReader | MeetingHudDataGenerated using TypeDoc
Represents a basic networkable object in Among Us.
See NetworkableEvents for events to listen to.