Skip to content

OnTurretStartup

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

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

Location

  • AutoTurret::InitiateStartup()
csharp
public void InitiateStartup()
{
	if (!IsOnline() && !booting && Interface.CallHook("OnTurretStartup", this) == null)
	{
		Effect.server.Run(onlineSound.resourcePath, this, 0u, Vector3.zero, Vector3.zero);
		Invoke(SetOnline, 2f);
		booting = true;
	}
//---

Released under the MIT License.