Project Zomboid

Project Zomboid

Actually Secure Clothes
dtoxic 2023 年 11 月 20 日 上午 4:40
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.
< >
正在显示第 1 - 2 条,共 2 条留言
Unamelable  [开发者] 2023 年 11 月 22 日 上午 12:57 
Im dummy dumb to do any coding stuff but i try it
dtoxic 2023 年 11 月 22 日 上午 1:42 
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")
< >
正在显示第 1 - 2 条,共 2 条留言
每页显示数: 1530 50