OnTechTreeNodeUnlock
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private object OnTechTreeNodeUnlock( Workbench instance, NodeInstance byID, BasePlayer player )
{
Puts( "OnTechTreeNodeUnlock works!" );
return null;
}Location
- Workbench::RPC_TechTreeUnlock(BaseEntity/RPCMessage msg)
csharp
//---
if (byID == null)
{
Debug.Log("Node for unlock not found :" + id.ToString());
return;
}
if (Interface.CallHook("OnTechTreeNodeUnlock", this, byID, player) != null)
{
return;
}
using (PooledList<TechTreeData.NodeInstance> pooledList = Pool.Get<PooledList<TechTreeData.NodeInstance>>())
{
//---