Skip to content

OnBookmarkControl

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private object OnBookmarkControl( ComputerStation instance, BasePlayer player, string text, IRemoteControllable remoteControllable )
{
    Puts( "OnBookmarkControl works!" );
    return null;
}

Location

  • ComputerStation::BeginControllingBookmark(BaseEntity/RPCMessage msg)
csharp
//---
	}
	if (Vector3.Distance(base.transform.position, ent.transform.position) >= remoteControllable.MaxRange)
	{
		return;
	}
	if (Interface.CallHook("OnBookmarkControl", this, player, text, remoteControllable) != null)
	{
		return;
	}
	BaseEntity baseEntity = this.currentlyControllingEnt.Get(true);
	if (baseEntity)
//---

Released under the MIT License.