OnMapMarkerRemove
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private object OnMapMarkerRemove( BasePlayer instance, List<ProtoBuf.MapNote> pointsOfInterest, int num )
{
Puts( "OnMapMarkerRemove works!" );
return null;
}Location
- BasePlayer::Server_RemovePointOfInterest(BaseEntity.RPCMessage msg)
csharp
//---
[RPC_Server.CallsPerSecond(10uL)]
[RPC_Server.FromOwner]
public void Server_RemovePointOfInterest(RPCMessage msg)
{
int num = msg.read.Int32();
if (State.pointsOfInterest != null && State.pointsOfInterest.Count > num && num >= 0 && Interface.CallHook("OnMapMarkerRemove", this, State.pointsOfInterest, num) == null)
{
State.pointsOfInterest[num].Dispose();
State.pointsOfInterest.RemoveAt(num);
DirtyPlayerState();
SendMarkersToClient();
//---