Skip to content

OnBookmarkControlEnded

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnBookmarkControlEnded( ComputerStation instance, BasePlayer player, IRemoteControllable b )
{
    Puts( "OnBookmarkControlEnded works!" );
}
csharp
private void OnBookmarkControlEnded( ComputerStation instance, BasePlayer ply, BaseEntity baseEntity )
{
    Puts( "OnBookmarkControlEnded works!" );
}

Location

  • ComputerStation::BeginControllingBookmark(BaseEntity/RPCMessage msg)
  • ComputerStation::StopControl(BasePlayer ply)
csharp
//---
		if (component != null)
		{
			component.StopControl(new CameraViewerId(this.currentPlayerID, 0L));
		}
	}
	Interface.CallHook("OnBookmarkControlEnded", this, player, component);
	player.net.SwitchSecondaryGroup(ent.net.group);
	this.currentlyControllingEnt.uid = ent.net.ID;
	this.currentPlayerID = player.userID;
	bool b = remoteControllable.InitializeControl(new CameraViewerId(this.currentPlayerID, 0L));
	base.SetFlag(BaseEntity.Flags.Reserved2, b, false, false);
//---
csharp
//---
	base.SetFlag(BaseEntity.Flags.Reserved2, false, false, false);
	base.SendNetworkUpdate(BasePlayer.NetworkQueue.Update);
	this.SendControlBookmarks(ply);
	base.CancelInvoke(new Action(this.ControlCheck));
	base.CancelInvoke(new Action(this.CheckCCTVAchievement));
	Interface.CallHook("OnBookmarkControlEnded", this, ply, baseEntity);
}

Released under the MIT License.