Skip to content

OnEngineStatsRefresh

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private object OnEngineStatsRefresh( VehicleModuleEngine instance, Rust.Modular.EngineStorage engineStorage )
{
    Puts( "OnEngineStatsRefresh works!" );
    return null;
}

Location

  • VehicleModuleEngine::RefreshPerformanceStats(Rust.Modular.EngineStorage engineStorage)
csharp
public void RefreshPerformanceStats(EngineStorage engineStorage)
{
	if (Interface.CallHook("OnEngineStatsRefresh", this, engineStorage) == null)
	{
		if (engineStorage == null)
		{
			IsUsable = false;
			PerformanceFractionAcceleration = 0f;
//---

Released under the MIT License.