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
//---
BaseEntity ent = remoteControllable.GetEnt();
if (ent == null)
{
Debug.LogWarning("RC identifier " + text + " was found but has a null or destroyed entity, this should never happen");
}
else if (remoteControllable.CanControl(player.userID) && !(Vector3.Distance(base.transform.position, ent.transform.position) >= remoteControllable.MaxRange) && Interface.CallHook("OnBookmarkControl", this, player, text, remoteControllable) == null)
{
BaseEntity baseEntity = currentlyControllingEnt.Get(serverside: true);
if ((bool)baseEntity)
{
IRemoteControllable component = baseEntity.GetComponent<IRemoteControllable>();
//---