OnTurretStartup
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnTurretStartup( AutoTurret instance )
{
Puts( "OnTurretStartup works!" );
}
Location
- AutoTurret::InitiateStartup()
csharp
//---
{
if (this.IsOnline() || this.booting)
{
return;
}
if (Interface.CallHook("OnTurretStartup", this) != null)
{
return;
}
Effect.server.Run(this.onlineSound.resourcePath, this, 0u, Vector3.zero, Vector3.zero, null, false, null);
base.Invoke(new Action(this.SetOnline), 2f);
//---