BakaSchwarz Posted October 5, 2015 Share Posted October 5, 2015 Greetings, like i stated in the title, i want to change the temperature around my character. It would be best, if it worked just like an endothermic fire, but the character itself should not be affected. I found these lines of code which seem to be relevant: inst:AddComponent("heater")inst.components.heater.heatfn = GetHeatFninst.components.heater:SetThermics(false, true) As of now, GetHeatFn returns -25. I added these lines to my characters prefab in the master_postinit function. When quickly tested it in a new world it didn't seem to affect my character at all. Is that because it already works like i want (Cools environment, without character) or am i missing something. Help is much appreciated, Thank you. Link to comment Share on other sites More sharing options...
BakaSchwarz Posted October 6, 2015 Author Share Posted October 6, 2015 Tested with a friend. My assumption was correct. This does the trick: inst:AddComponent("heater")inst.components.heater.heatfn = GetHeatFninst.components.heater:SetThermics(false, true) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.