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);
	player.SetRcEntityPosition(new Vector3?(ent.transform.position));
	this.currentlyControllingEnt.uid = ent.net.ID;
	this.currentPlayerID = player.userID;
	bool b = remoteControllable.InitializeControl(new CameraViewerId(this.currentPlayerID, 0L));
//---
csharp
//---
	this.currentPlayerID = 0uL;
	base.SetFlag(BaseEntity.Flags.Reserved2, false, false, false);
	base.SendNetworkUpdate(BasePlayer.NetworkQueue.Update);
	this.SendControlBookmarks(ply);
	base.CancelInvoke(new Action(this.ControlCheck));
	Interface.CallHook("OnBookmarkControlEnded", this, ply, baseEntity);
	base.CancelInvoke(new Action(this.CheckCCTVAchievement));
}

Released under the MIT License.