Skip to content

OnTurretDeauthorize ​

Usage ​

  • Return a non-null value to override default behavior

Example Autogenerated ​

csharp
private void OnTurretDeauthorize( AutoTurret instance, BasePlayer player )
{
    Puts( "OnTurretDeauthorize works!" );
}

Location ​

  • AutoTurret::RemoveSelfAuthorize(BaseEntity/RPCMessage rpc)
csharp
//---
{
	if (this.booting || this.IsOnline() || !this.IsAuthed(rpc.player))
	{
		return;
	}
	if (Interface.CallHook("OnTurretDeauthorize", this, rpc.player) != null)
	{
		return;
	}
	this.authorizedPlayers.Remove(rpc.player.userID);
	this.authDirty = true;
//---

Released under the MIT License.