Skip to content

OnEngineStarted

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnEngineStarted(  )
{
    Puts( "OnEngineStarted works!" );
}
csharp
private void OnEngineStarted(  )
{
    Puts( "OnEngineStarted works!" );
}

Location

  • MotorRowboat::EngineToggle(bool wantsOn)
  • VehicleEngineController<T>::TryStartEngine(BasePlayer player)
csharp
//---
		return;
	}
	base.SetFlag(BaseEntity.Flags.On, wantsOn, false, true);
	if (wantsOn)
	{
		Interface.CallHook("OnEngineStarted", this, OxideGen_0);
	}
	if (wantsOn)
	{
		this.rigidBody.WakeUp();
		this.buoyancy.Wake();
//---
csharp
//---
		return;
	}
	this.owner.SetFlag(this.engineStartingFlag, true, false, true);
	this.owner.SetFlag(BaseEntity.Flags.On, false, false, true);
	this.owner.Invoke(new Action(this.FinishStartingEngine), this.engineStartupTime);
	Interface.CallHook("OnEngineStarted", this.owner, player);
}

Released under the MIT License.