OnTurretIdentifierSet
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnTurretIdentifierSet( AutoTurret instance, BasePlayer player, string newID )
{
Puts( "OnTurretIdentifierSet works!" );
}Location
- AutoTurret::SetID(BasePlayer player, string oldID, string newID, bool bypassChecks)
csharp
//---
{
return;
}
if (oldID == this.GetIdentifier())
{
if (Interface.CallHook("OnTurretIdentifierSet", this, player, newID) != null)
{
return;
}
Debug.Log("SetID success!");
this.UpdateIdentifier(newID, false);
//---