OnPlayerVoice
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnPlayerVoice( BasePlayer instance, Byte[] data )
{
Puts( "OnPlayerVoice works!" );
}
Location
- BasePlayer::OnReceivedVoice(System.Byte[] data)
csharp
public void OnReceivedVoice(byte[] data)
{
if (Interface.CallHook("OnPlayerVoice", this, data) != null)
{
return;
}
NetWrite expr_1A = Network.Net.sv.StartWrite();
expr_1A.PacketID(Message.Type.VoiceData);
//---