CanUnlockTechTreeNodePath
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void CanUnlockTechTreeNodePath( BasePlayer player, NodeInstance node, TechTreeData instance )
{
Puts( "CanUnlockTechTreeNodePath works!" );
}
Location
- TechTreeData::PlayerHasPathForUnlock(BasePlayer player, TechTreeData/NodeInstance node)
csharp
public bool PlayerHasPathForUnlock(BasePlayer player, TechTreeData.NodeInstance node)
{
object returnvar = Interface.CallHook("CanUnlockTechTreeNodePath", player, node, this);
if (returnvar is bool)
{
return (bool)returnvar;
}
TechTreeData.NodeInstance entryNode = this.GetEntryNode();
//---