DeadlyFox Posted July 9, 2025 Share Posted July 9, 2025 I dont know how to make my custom hat to lose durability when worn just like a winter hat. I tried to look in the game files but I didint see anything that could help me. If anyone could help me that would be awesome! Link to comment https://forums.kleientertainment.com/forums/topic/166901-need-help-i-need-help-to-make-my-custom-hat-lose-durability-over-time-like-a-winter-hat/ Share on other sites More sharing options...
Marmalade Posted July 10, 2025 Share Posted July 10, 2025 The hats of DST are all adorably stuffed in hats.lua like a clown car, so I was able to scavange around, and I assume these lines of code are responsible for depleting the winter's hat durability when it is in use: inst:AddComponent("fueled") inst.components.fueled.fueltype = FUELTYPE.USAGE inst.components.fueled:InitializeFuelLevel(TUNING.WINTERHAT_PERISHTIME) inst.components.fueled:SetDepletedFn(inst.Remove) 2 Link to comment https://forums.kleientertainment.com/forums/topic/166901-need-help-i-need-help-to-make-my-custom-hat-lose-durability-over-time-like-a-winter-hat/#findComment-1826405 Share on other sites More sharing options...
DeadlyFox Posted July 10, 2025 Author Share Posted July 10, 2025 I think it works now, and thanks a lot for helping me out ^^ Link to comment https://forums.kleientertainment.com/forums/topic/166901-need-help-i-need-help-to-make-my-custom-hat-lose-durability-over-time-like-a-winter-hat/#findComment-1826438 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