TomButFishy Posted May 21, 2020 Share Posted May 21, 2020 I'm making a custom character, and I'm making a perk where if you don't eat or craft for a certain amount of time you start losing sanity. So far, I have gotten the eat part of that to work, but how would I check if the player has crafted anything? Link to comment https://forums.kleientertainment.com/forums/topic/118413-trigger-function-after-crafting/ Share on other sites More sharing options...
Cunning fox Posted May 25, 2020 Share Posted May 25, 2020 inst:ListenForEvent("builditem", function(inst, data) -- Your code here -- Data contains: { item = prod, recipe = recipe, skin = skin, prototyper = self.current_prototyper } -- See components/builder.lua:458 end) 1 Link to comment https://forums.kleientertainment.com/forums/topic/118413-trigger-function-after-crafting/#findComment-1336142 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