OnBookmarkAdd
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnBookmarkAdd( ComputerStation instance, BasePlayer player, string text )
{
Puts( "OnBookmarkAdd works!" );
}
Location
- ComputerStation::AddBookmark(BaseEntity/RPCMessage msg)
csharp
//---
player.ChatMessage("Too many bookmarks, delete some");
return;
}
this.nextAddTime = Time.realtimeSinceStartup + 1f;
string text = msg.read.String(256, false);
if (Interface.CallHook("OnBookmarkAdd", this, player, text) != null)
{
return;
}
this.ForceAddBookmark(text);
this.SendControlBookmarks(player);
//---