Skip to main content

CanUnlockTechTreeNodePath

Usage​

  • Called when a player is attempting to unlock a blueprint in a tech tree, after the CanUnlockTechTreeNode hook, when determining whether they have the prerequisite blueprints unlocked
  • Return true or false to override default behavior
  • Useful for customizing prerequisites without conflicting with the CanPlayerUnlock hook

Examples​

""
object CanUnlockTechTreeNodePath(BasePlayer player, TechTreeData.NodeInstance node, TechTreeData techTree)
{
Puts("CanUnlockTechTreeNodePath works!");
return null;
}