TechTree (4)
All currently available hooks that are found in Carbon. Most hooks would be ones compatible with Oxide, although there are Carbon-only ones as well.
Last updated
All currently available hooks that are found in Carbon. Most hooks would be ones compatible with Oxide, although there are Carbon-only ones as well.
Last updated
Called when a player is attempting to unlock a blueprint in a tech tree.
Useful for bypassing unlock requirements or disallowing particular blueprints from being unlocked.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches TechTreeData.PlayerCanUnlock of Assembly-CSharp.dll.
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.
Useful for customizing prerequisites without conflicting with the CanPlayerUnlock
hook.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches TechTreeData.PlayerHasPathForUnlock of Assembly-CSharp.dll.
Called when a player is attempting to unlock a blueprint in a tech tree, after the CanUnlockTechTreeNode
and CanUnlockTechTreeNodePath
hooks, before the player is charged scrap.
Useful for replacing the default behavior to charge the player a different currency, or to unlock multiple blueprints at once (such as those leading up to the one selected).
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches Workbench.RPC_TechTreeUnlock of Assembly-CSharp.dll.
Called after a player has unlocked a blueprint in a tech tree.
Useful for automatically unlocking blueprints for team members.
Returning a non-null value cancels default behavior.
This hook is compatible within Carbon and Oxide.
Patches Workbench.RPC_TechTreeUnlock of Assembly-CSharp.dll.
This hook requires OnTechTreeNodeUnlock, which loads alongside OnTechTreeNodeUnlocked.