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