Skip to content

OnExperimentEnd

Usage

  • Return a non-null value or bool to override default behavior

Example Autogenerated

csharp
private void OnExperimentEnd( Workbench instance )
{
    Puts( "OnExperimentEnd works!" );
}

Location

  • Workbench::ExperimentComplete()
csharp
//---
	int scrapForExperiment = this.GetScrapForExperiment();
	if (this.pendingBlueprint == null)
	{
		Debug.LogWarning("Pending blueprint was null!");
	}
	if (Interface.CallHook("OnExperimentEnd", this) != null)
	{
		return;
	}
	if (experimentResourceItem != null && experimentResourceItem.amount >= scrapForExperiment && this.pendingBlueprint != null)
	{
//---

Released under the MIT License.