Auklin Posted February 1, 2020 Share Posted February 1, 2020 To boil it down, mod is simple, I want to change the UseDelta value on DuctTape to 0.05 (from 0.25). File is in ProjectZomboid\media\scripts\newitems.txt The problem is, I need to include the entire file in the workshop mod, which means any update that changes this file will render the mod obsolete. I want to target the duct tape item, so that ONLY the duct tape item gets changed in the mods files. I don't think the useDelta is 'set' anywhere in the other script files. Any ideas? Link to comment Share on other sites More sharing options...
ProjectSky Posted February 2, 2020 Share Posted February 2, 2020 (edited) local DuctTape = getScriptManager():getItem("Base.DuctTape"); DuctTape:setUseDelta(0.05); call OnPreMapLoad event load this function Edited February 2, 2020 by ProjectSky simpler code PePePePePeil 1 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