![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <PlayerMuteList.h>
Public Member Functions | |
| FPlayerMuteList () | |
| bool | AddVoiceBlockReason (const FUniqueNetIdPtr &PlayerId, EVoiceBlockReasons VoiceBlockReason) |
| bool | RemoveVoiceBlockReason (const FUniqueNetIdPtr &PlayerId, EVoiceBlockReasons VoiceBlockReason) |
| void | ServerMutePlayer (class APlayerController *OwningPC, const FUniqueNetIdRepl &MuteId) |
| void | ServerUnmutePlayer (class APlayerController *OwningPC, const FUniqueNetIdRepl &UnmuteId) |
| void | GameplayMutePlayer (class APlayerController *OwningPC, const FUniqueNetIdRepl &MuteId) |
| void | GameplayUnmutePlayer (class APlayerController *OwningPC, const FUniqueNetIdRepl &UnmuteId) |
| void | GameplayUnmuteAllPlayers (class APlayerController *OwningPC) |
| void | ServerBlockPlayer (class APlayerController *OwningPC, const FUniqueNetIdRepl &BlockId) |
| void | ServerUnblockPlayer (class APlayerController *OwningPC, const FUniqueNetIdRepl &UnblockId) |
| bool | IsPlayerMuted (const class FUniqueNetId &PlayerId) |
Public Attributes | |
| TUniqueNetIdMap< EVoiceBlockReasons > | VoicePacketFilterMap |
| bool | bHasVoiceHandshakeCompleted |
| int32 | VoiceChannelIdx |
Container responsible for managing the mute state of a player controller at the gameplay level (VoiceInterface handles actual muting)
|
inline |
| bool FPlayerMuteList::AddVoiceBlockReason | ( | const FUniqueNetIdPtr & | PlayerId, |
| EVoiceBlockReasons | VoiceBlockReason | ||
| ) |
Add a filter reason for an id to this player's mutelist
| OwningPC | player id to add a filter reason |
| VoiceBlockReason | reason to add |
| void FPlayerMuteList::GameplayMutePlayer | ( | class APlayerController * | OwningPC, |
| const FUniqueNetIdRepl & | MuteId | ||
| ) |
Server muting based on gameplay rules
| OwningPC | player controller that would like to mute another player |
| MuteId | player id that should be muted |
| void FPlayerMuteList::GameplayUnmuteAllPlayers | ( | class APlayerController * | OwningPC | ) |
Server unmuting all players muted based on gameplay rules
| OwningPC | player controller that would like to unmute all players |
| void FPlayerMuteList::GameplayUnmutePlayer | ( | class APlayerController * | OwningPC, |
| const FUniqueNetIdRepl & | UnmuteId | ||
| ) |
Server unmuting based on gameplay rules
| OwningPC | player controller that would like to unmute another player |
| UnmuteId | player id that should be unmuted |
| bool FPlayerMuteList::IsPlayerMuted | ( | const class FUniqueNetId & | PlayerId | ) |
Is a given player currently muted
| PlayerId | player to query mute state |
| bool FPlayerMuteList::RemoveVoiceBlockReason | ( | const FUniqueNetIdPtr & | PlayerId, |
| EVoiceBlockReasons | VoiceBlockReason | ||
| ) |
Remove a filter reason for an id from this player's mutelist
| UniqueIdToRemove | player id to remove a filter reason |
| VoiceBlockReason | reason to remove |
| void FPlayerMuteList::ServerBlockPlayer | ( | class APlayerController * | OwningPC, |
| const FUniqueNetIdRepl & | BlockId | ||
| ) |
Tell the server to block a given player
| OwningPC | player controller that would like to block another player |
| BlockerId | player id that should be blocked |
| void FPlayerMuteList::ServerMutePlayer | ( | class APlayerController * | OwningPC, |
| const FUniqueNetIdRepl & | MuteId | ||
| ) |
Tell the server to mute a given player
| OwningPC | player controller that would like to mute another player |
| MuteId | player id that should be muted |
| void FPlayerMuteList::ServerUnblockPlayer | ( | class APlayerController * | OwningPC, |
| const FUniqueNetIdRepl & | UnblockId | ||
| ) |
Tell the server to unblock a given player
| UnblockedPC | player controller that would like to unblock another player |
| BlockerId | player id that should be unblocked |
| void FPlayerMuteList::ServerUnmutePlayer | ( | class APlayerController * | OwningPC, |
| const FUniqueNetIdRepl & | UnmuteId | ||
| ) |
Tell the server to unmute a given player
| OwningPC | player controller that would like to unmute another player |
| UnmuteId | player id that should be unmuted |
| bool FPlayerMuteList::bHasVoiceHandshakeCompleted |
Has server and client handshake completed
| int32 FPlayerMuteList::VoiceChannelIdx |
| TUniqueNetIdMap<EVoiceBlockReasons> FPlayerMuteList::VoicePacketFilterMap |
Map of player ids and a bitfield containing filter reasons. Non-zero entries imply communication is blocked for that player