Skip to content

OnTurretIdentifierSet

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

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

Location

  • AutoTurret::Server_SetID(BaseEntity/RPCMessage msg)
csharp
//---
	{
		return;
	}
	if (text == this.GetIdentifier())
	{
		if (Interface.CallHook("OnTurretIdentifierSet", this, msg.player, text2) != null)
		{
			return;
		}
		Debug.Log("SetID success!");
		this.UpdateIdentifier(text2, false);
//---

Released under the MIT License.