Thebrettstoner Posted December 18, 2018 Share Posted December 18, 2018 Hello World. I know that it's possible to Unlock recipies for your modded characters. inst.components.builder:UnlockRecipe("amulet") inst.components.builder:UnlockRecipe("amulet") But is there a way to do the opposite? I wish for my character to not be able to craft a science machine (researchlab) or an alchemy engine (researchlab2)? Link to comment Share on other sites More sharing options...
Ultroman Posted December 18, 2018 Share Posted December 18, 2018 You can extend CanBuild in the builder-component, and before you run the original CanBuild, you check the recipe name for one of those two recipes, and if it's one of them, return false. I'm not sure how much of the game will "look" right, as in, it might LOOK like you can build them, but this should prevent you from actually building them. Link to comment 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