Skip to content

OnTurretClearList

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

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

Location

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

Released under the MIT License.