Will you able to add hook when player learned BP?
Request OnItemResearch hook (Rust)
Discussion in 'Feature Suggestions' started by HOUGAN_Y, Feb 8, 2018.
-
both start and end exists:
Oxide API for Rust
Oxide API for Rust -
-
-
Pretty sure he wants when a player learns a new blueprint.
Looks like OnItemResearched exists already in the Oxide github.
You could use OnitemUse and check if its a blueprint
Code:public void OnItemUse(Item item, int amountToUse) { if (item.IsBlueprint()) { Puts("Item name: " + item.blueprintTargetDef.displayName.english); } }
Last edited by a moderator: Feb 10, 2018 -
I know about it, but I can’t return false to block learning BP.
-
Request - Workbench_CanBeginExperiment Hook - Rust
[DOUBLEPOST=1518699421][/DOUBLEPOST]request i think u want is already there @HOUGAN_Y
[DOUBLEPOST=1518699435][/DOUBLEPOST]u could always write ur own patch and use oxide patcher like i do -
Wulf Community Admin
-
im currently ussing a custom oxide patch i just repatch my file over the latest oxide always seem to work fine but im still waiting till u would like to implement Request - Workbench_CanBeginExperiment Hook - Rust future then i dont have to repatch it all the time and i might see a new way for people to have more controle in Blueprints
-
@Wulf is fully correct.