Skip to content

OnExperimentStart

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnExperimentStart( Workbench instance, BasePlayer player )
{
    Puts( "OnExperimentStart works!" );
}

Location

  • Workbench::RPC_BeginExperiment(BaseEntity/RPCMessage msg)
csharp
//---
	if (this.pendingBlueprint == null)
	{
		player.ChatMessage("You have already unlocked everything for this workbench tier.");
		return;
	}
	if (Interface.CallHook("OnExperimentStart", this, player) != null)
	{
		return;
	}
	Item slot = base.inventory.GetSlot(0);
	if (slot != null)
//---

Released under the MIT License.