Project Zomboid

Project Zomboid

Actually Secure Clothes
dtoxic 20 Nov, 2023 @ 4:40am
Suggestion
Nice mod,but you should do this with a scripting in LUA instead,that way you will avoid potential compatibility problems with other mods that happen to modify the same peace of clothing.
< >
Showing 1-2 of 2 comments
Unamelable  [developer] 22 Nov, 2023 @ 12:57am 
Im dummy dumb to do any coding stuff but i try it
dtoxic 22 Nov, 2023 @ 1:42am 
Its easy actually....

just do this, here is an example to change the weight of the M9 Pistol

so instead Base.Pistol you put Base.What you want to change and then the property...say scratch defense or whatever then save it as *.lua and put in Media\Lua\Shared or Server folder and you are done :)


function Adjust(Name, Property, Value)
Item = ScriptManager.instance:getItem(Name)
Item:DoParam(Property.." = "..Value)
end

--Firearms Weight

Adjust("Base.Pistol","Weight","0.5")
< >
Showing 1-2 of 2 comments
Per page: 1530 50