HolyLib Wiki

voicechat.IsProximityHearingClient

 boolean voicechat.IsProximityHearingClient( ClientArg(CBaseClient or Player or number) ply, ClientArg(CBaseClient or Player or number) targetPly )

Description

Returns whether the given client can hear the target client in it's proximity.

Recently Changed

This was recently changed in version (0.8 - DEV).

The ply and targetPly arguments were changed from previously accepting only Player to now accepting all ClientArg

Arguments

1ClientArg(CBaseClient or Player or number) ply

The Player to send the Voice Data to.

2ClientArg(CBaseClient or Player or number) targetPly

The target player to check.

Returns

1boolean canHear

Returns true if the player can hear the target player in it's proximity