Skip to content

OnTechTreeNodeUnlock

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

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

Location

  • Workbench::RPC_TechTreeUnlock(BaseEntity/RPCMessage msg)
csharp
//---
			Debug.Log("Player unlocked group :" + byID.groupName);
			return;
		}
		if (byID.itemDef != null)
		{
			if (Interface.CallHook("OnTechTreeNodeUnlock", this, byID, player) != null)
			{
				return;
			}
			int num2;
			int num = Workbench.ScrapForResearch(byID.itemDef, techTreeForLevel.techTreeLevel, out num2);
//---

Released under the MIT License.