Marshmelloen Posted September 3, 2023 Share Posted September 3, 2023 I need help on making a mod that would be great to have for the entire community. but I have tried everything of my own knowledge on how to do it but can't figure out how. My goal is to make a simple mod where you can attach light sources on your belt I just need help with the coding part mabye I am doing it completely wrong. Pls help. Link to comment Share on other sites More sharing options...
excon Posted September 3, 2023 Share Posted September 3, 2023 you should start with a simple mod, understand how it works, reverse engineer from other mods and learn. when the puzzle comes together you can move on to more complex items. my2cents Link to comment Share on other sites More sharing options...
Marshmelloen Posted September 3, 2023 Author Share Posted September 3, 2023 What should I start doing? Link to comment Share on other sites More sharing options...
excon Posted September 5, 2023 Share Posted September 5, 2023 https://letmegooglethat.com/?q=How+to+make+a+mod+in+project+zomboid Link to comment Share on other sites More sharing options...
Betcher Posted October 9, 2023 Share Posted October 9, 2023 On 9/3/2023 at 1:35 AM, Marshmelloen said: I need help on making a mod that would be great to have for the entire community. but I have tried everything of my own knowledge on how to do it but can't figure out how. My goal is to make a simple mod where you can attach light sources on your belt I just need help with the coding part mabye I am doing it completely wrong. Pls help. doing a quick search, the path is Project Zomboid\media\lua\client\Hotbar\ISHotbarAttachDefinition.lua for what thigns attach to a belt. attachments = { -- list of possible item category and their modelAttachement group, the item category is defined in the item script Knife = "Belt Left Upside", -- defined in AttachedLocations.lua Hammer = "Belt Left", Is how its writen. There is a second thing below it fir the right side. What Im thinking is you check out how the walkie talkie works with Project Zomboid\media\lua\shared\NPCs\AttachedLocations.lua also being in there and see if you can brute force something similar. No idea if the light will stay on but I would look up the light codes after that and see if you can add the attached state in. personally I never use flashlights but I also go with normal night time so it might be good for those who do harder versions and dont use cateyes 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