Skip to content

OnTurretAuthorize

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

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

Location

  • AutoTurret::AddSelfAuthorize(BasePlayer player)
csharp
//---
	}
	if (this.AtMaxAuthCapacity())
	{
		return;
	}
	if (Interface.CallHook("OnTurretAuthorize", this, player2) != null)
	{
		return;
	}
	this.authorizedPlayers.RemoveWhere((PlayerNameID x) => x.userid == player.userID);
	PlayerNameID playerNameID = new PlayerNameID();
//---

Released under the MIT License.