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