Jump to content

Recommended Posts

I've recently made a mod for single play DS, and am in the process of porting it to DST.

So far I've managed to get everything working - except the prefab that's meant to lower your temperature when you're nearby. It's an inverse of the code to raise your temp in another prefab, and this simple switch worked in the single player version. Not sure why it won't for for DST.

Anyone willing to have a look and see where I might be going wrong? Prefab attached.

magiclantern_blue.lua

Edited by justjasper
inst:AddComponent("heater")
inst.components.heater.heatfn = function() return -999 end
inst.components.heater:SetThermics(false, true)

This should work because it works for my character.

Edited by SuperDavid
44 minutes ago, SuperDavid said:

inst:AddComponent("heater")
inst.components.heater.heatfn = function() return -999 end
inst.components.heater:SetThermics(false, true)

This should work because it works for my character.

That worked! Thanks a lot for the help.

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...