How to change temperature around the character?


BakaSchwarz

Recommended Posts

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 = GetHeatFn
inst.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

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.