Berwin Posted November 12, 2017 Share Posted November 12, 2017 Hi I'm a complete novice at modding. I want to make the prefab silk perishable which I was able to do by adding this into silk.lua and adding inst:AddComponent("perishable") inst.components.perishable:SetPerishTime(TUNING.PERISH_FAST) inst.components.perishable:StartPerishing() inst.components.perishable.onperishreplacement = "spoiled_food" Instead of changing each and every script ie silk.lua can i add this code into modmain.lua. How do i get the instance to refer to the object silk? Link to comment Share on other sites More sharing options...
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 account
Already have an account? Sign in here.Sign In Now