Skip to content

OnPlayerPingsSend

Called before ping markers are sent to the client.
Allows adding new or manipulating existing markers

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnPlayerPingsSend( BasePlayer instance, ProtoBuf.MapNoteList mapNoteList )
{
    Puts( "OnPlayerPingsSend works!" );
}

Location

  • BasePlayer::SendPingsToClient()
csharp
private void SendPingsToClient()
{
	using MapNoteList mapNoteList = Pool.Get<MapNoteList>();
	mapNoteList.notes = Pool.Get<List<MapNote>>();
	mapNoteList.notes.AddRange(State.pings);
	Interface.CallHook("OnPlayerPingsSend", this, mapNoteList);
	ClientRPC(RpcTarget.Player("Client_ReceivePings", this), mapNoteList);
	mapNoteList.notes.Clear();
}

Released under the MIT License.