Jump to content

Recommended Posts

            inst:AddComponent("perishable")               -- Add perishable component to make inventory perishable
            inst.components.perishable:SetPerishTime(120) -- Item will perish after this time
            inst.components.perishable:StartPerishing()   -- Make item start to perish
            inst.components.perishable.onperishreplacement = "spoiled_food"   --  change it to spoiled_food, when perished
5 hours ago, Liquid Ocelot said:
            inst:AddComponent("perishable")               -- Add perishable component to make inventory perishable
            inst.components.perishable:SetPerishTime(120) -- Item will perish after this time
            inst.components.perishable:StartPerishing()   -- Make item start to perish
            inst.components.perishable.onperishreplacement = "spoiled_food"   --  change it to spoiled_food, when perished

thank you very much good sir

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

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...