DaredevilEel305 Posted February 3, 2022 Share Posted February 3, 2022 How to make an axe twice as strong with modmain.lua? sorry i just started learning lua and all day trying to find an answer Link to comment https://forums.kleientertainment.com/forums/topic/137299-help-i-need-to-change-an-axe-with-modmainlua/ Share on other sites More sharing options...
kipper0k Posted February 3, 2022 Share Posted February 3, 2022 AddPrefabPostInit("prefab", function() --code end) or AddPrefabPostInit("prefab", function_name) Link to comment https://forums.kleientertainment.com/forums/topic/137299-help-i-need-to-change-an-axe-with-modmainlua/#findComment-1537632 Share on other sites More sharing options...
DaredevilEel305 Posted February 3, 2022 Author Share Posted February 3, 2022 3 hours ago, kipper0k said: I dont understand, but thanks Link to comment https://forums.kleientertainment.com/forums/topic/137299-help-i-need-to-change-an-axe-with-modmainlua/#findComment-1537676 Share on other sites More sharing options...
pickleplayer Posted February 3, 2022 Share Posted February 3, 2022 Normally for editing a prefab like an axe, you'd do it like kipper said. But for axe damage specifically, you would probably edit the tuning values that dictate how much damage an axe does. GLOBAL.TUNING.AXE_DAMAGE = 34*.8 And alter that value to be whatever you want. Link to comment https://forums.kleientertainment.com/forums/topic/137299-help-i-need-to-change-an-axe-with-modmainlua/#findComment-1537747 Share on other sites More sharing options...
DaredevilEel305 Posted February 4, 2022 Author Share Posted February 4, 2022 13 hours ago, pickleplayer said: Normally for editing a prefab like an axe, you'd do it like kipper said. But for axe damage specifically, you would probably edit the tuning values that dictate how much damage an axe does. GLOBAL.TUNING.AXE_DAMAGE = 34*.8 And alter that value to be whatever you want. Oh haha, pickleplayer. Thank u so much <3 Link to comment https://forums.kleientertainment.com/forums/topic/137299-help-i-need-to-change-an-axe-with-modmainlua/#findComment-1537937 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