Skip to content

OnTurretToggle

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

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

Location

  • AutoTurret::SetIsOnline(bool online)
csharp
//---
{
	if (online == base.IsOn())
	{
		return;
	}
	if (Interface.CallHook("OnTurretToggle", this) != null)
	{
		return;
	}
	base.SetFlag(BaseEntity.Flags.On, online, false, true);
	if (online)
//---

Released under the MIT License.