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, player) != null)
{
return;
}
this.authorizedPlayers.Add(player.userID);
Facepunch.Rust.Analytics.Azure.OnEntityAuthChanged(this, player, this.authorizedPlayers, "added", player.userID);
//---