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, MapNoteList mapNoteList )
{
    Puts( "OnPlayerPingsSend works!" );
}

Location

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

Released under the MIT License.