justjasper Posted October 26, 2016 Share Posted October 26, 2016 (edited) 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 October 27, 2016 by justjasper Link to comment https://forums.kleientertainment.com/forums/topic/71175-heat-radius-works-cold-radius-doesnt-solved/ Share on other sites More sharing options...
Serpens Posted October 27, 2016 Share Posted October 27, 2016 (edited) is something with insulation near or you wear it? I remember that the insulation stuff is strange in DST. edit: ah, no the "bug" was the other way round: Edited October 27, 2016 by Serpens Link to comment https://forums.kleientertainment.com/forums/topic/71175-heat-radius-works-cold-radius-doesnt-solved/#findComment-829807 Share on other sites More sharing options...
justjasper Posted October 27, 2016 Author Share Posted October 27, 2016 @Serpens I've tried adding thermics (eg "inst.components.heater:SetThermics(false, true)" from the coldfire_fire code) with no luck. Link to comment https://forums.kleientertainment.com/forums/topic/71175-heat-radius-works-cold-radius-doesnt-solved/#findComment-829953 Share on other sites More sharing options...
. . . Posted October 27, 2016 Share Posted October 27, 2016 (edited) 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 October 27, 2016 by SuperDavid Link to comment https://forums.kleientertainment.com/forums/topic/71175-heat-radius-works-cold-radius-doesnt-solved/#findComment-829960 Share on other sites More sharing options...
justjasper Posted October 27, 2016 Author Share Posted October 27, 2016 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. Link to comment https://forums.kleientertainment.com/forums/topic/71175-heat-radius-works-cold-radius-doesnt-solved/#findComment-829967 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now