Skip to content

OnTurretShutdown

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private object OnTurretShutdown( AutoTurret instance )
{
    Puts( "OnTurretShutdown works!" );
    return null;
}

Location

  • AutoTurret::InitiateShutdown()
csharp
public void InitiateShutdown()
{
	if ((!IsOffline() || booting) && Interface.CallHook("OnTurretShutdown", this) == null)
	{
		CancelInvoke(SetOnline);
		booting = false;
		Effect.server.Run(offlineSound.resourcePath, this, 0u, Vector3.zero, Vector3.zero);
		SetIsOnline(online: false);
//---

Released under the MIT License.