Navigation
API > API/Plugins > API/Plugins/VoiceChat > API/Plugins/VoiceChat/IVoiceChatUser
Description
Block communication with players
Adds the PlayerNames to the block list, muting them in all current and subsequently joined channels. A block for a player persists until either:
- The local user logs out (e.g. by calling Logout/Disconnect/Uninitialize, or receiving equivalent events)
- A subsequent call to UnblockPlayers is made with that PlayerName.
| Name | BlockPlayers |
| Type | function |
| Header File | /Engine/Plugins/Online/VoiceChat/VoiceChat/Source/Public/VoiceChat.h |
| Include Path | #include "VoiceChat.h" |
void BlockPlayers
(
const TArray < FString > & PlayerNames
)
Parameters
| Name | Remarks |
|---|---|
| PlayerNames | List of players to block communication with |