blubuild Posted November 8, 2016 Share Posted November 8, 2016 From rummaging around in the relevant game files, I don't know how to do this or if it's possible (seems it may be hardcoded territory?). Can I check whether a player has a specific crafting recipe unlocked (by means of having prototyped it already, or having read a blueprint of it already)? local recipe = GLOBAL.AllRecipes["backpack"] local player = GLOBAL.AllPlayers[1] -- example parameters... if player:RecipeIsUnlocked(recipe) then -- hypothetical function -- do stuff end Link to comment https://forums.kleientertainment.com/forums/topic/71530-how-to-check-if-a-player-has-a-recipe-unlocked/ Share on other sites More sharing options...
alainmcd Posted November 8, 2016 Share Posted November 8, 2016 player.components.builder:KnowsRecipe(recipename) Link to comment https://forums.kleientertainment.com/forums/topic/71530-how-to-check-if-a-player-has-a-recipe-unlocked/#findComment-835084 Share on other sites More sharing options...
blubuild Posted November 9, 2016 Author Share Posted November 9, 2016 (edited) Looks like my search was pretty crappy after all, I totally missed a bunch of files and keywords. Excellent, @alainmcd, thank you! EDIT: For anyone interested, to do it client-side you use player.replica.builder:KnowsRecipe(recipename) . The same also works on the server side as well, so maybe no need to ever use the non-replica function. Edited November 9, 2016 by blubuild Link to comment https://forums.kleientertainment.com/forums/topic/71530-how-to-check-if-a-player-has-a-recipe-unlocked/#findComment-835407 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now