Skip to content

OnItemResearch

Usage

  • No return behavior

Example Autogenerated

csharp
private void OnItemResearch( ResearchTable instance, Item targetItem, BasePlayer player )
{
    Puts( "OnItemResearch works!" );
}

Location

  • ResearchTable::DoResearch(BaseEntity/RPCMessage msg)
csharp
//---
	}
	if (!this.IsItemResearchable(targetItem))
	{
		return;
	}
	Interface.CallHook("OnItemResearch", this, targetItem, player);
	targetItem.CollectedForCrafting(player);
	this.researchFinishedTime = Time.realtimeSinceStartup + this.researchDuration;
	base.Invoke(new Action(this.ResearchAttemptFinished), this.researchDuration);
	base.inventory.SetLocked(true);
	int scrapCost = ResearchTable.ScrapForResearch(targetItem);
//---

Released under the MIT License.