Skip to content

OnTurretShutdown ​

Usage ​

  • Return a non-null value to override default behavior

Example Autogenerated ​

csharp
private void OnTurretShutdown( AutoTurret instance )
{
    Puts( "OnTurretShutdown works!" );
}

Location ​

  • AutoTurret::InitiateShutdown()
csharp
//---
{
	if (this.IsOffline() && !this.booting)
	{
		return;
	}
	if (Interface.CallHook("OnTurretShutdown", this) != null)
	{
		return;
	}
	base.CancelInvoke(new Action(this.SetOnline));
	this.booting = false;
//---

Released under the MIT License.