VoiceChannel
Hierarchy
- BaseObject
- VoiceChannel
Index
Constructors
Properties
Methods
Constructors
constructor
Properties
publicfilter
Hash of the filter name (should also be created on clientside). See docs: Audio filters, Voice.
publicreadonlyid
publicreadonlyisSpatial
publicreadonlymaxDistance
publicreadonlyplayerCount
publicreadonlyplayers
publicpriority
Priority of voice channel. If a player is in two channels and both can be heard by another player, only one should play the voice. Value is of type integer, can be negative.
publicreadonlyrefCount
Returns the ref count of the entity.
publicreadonlytype
Type of the object.
publicreadonlyvalid
Object usability.
Methods
publicaddPlayer
publicdeleteMeta
publicdeleteSyncedMeta
Removes the specified key and the data connected to that specific key.
publicdestroy
Removes the object from the world.
publicgetMeta
Type parameters
- K: string
publicgetMetaDataKeys
publicgetSyncedMeta
Gets a value using the specified key.
Type parameters
- K: string
publicgetSyncedMetaKeys
publichasMeta
publichasSyncedMeta
Determines whether contains the specified key.
publicisPlayerInChannel
publicisPlayerMuted
publicmutePlayer
publicremovePlayer
publicsetMeta
Type parameters
- K: string
publicsetSyncedMeta
Stores the given value with the specified key.
Type parameters
- K: string
publicunmutePlayer
publicstaticgetByID
Gets the base object with the given type and id
Creates a new voice channel.
Remarks
This throws an error when the voice chat is not activated on serverside.