Jump to content

Immunity to cold?


Recommended Posts

@Crestonia

inst.components.temperature.mintemp = 20
With this the minimum temperature your character will experience is 20 degrees, which is warm enough to prevent freezing (and should be cold enough to avoid overheating right away in RoG summer when it comes out). Edited by Ryuushu
Link to comment
Share on other sites

@Crestonia

inst.components.temperature.mintemp = 20
With this the minimum temperature your character will experience is 20 degrees, which is warm enough to prevent freezing (and should be cold enough to avoid overheating right away in RoG summer when it comes out).

 

Sorry I'm kind of new at modding. Should I just put it under the stats section?

Link to comment
Share on other sites

@Crestonia

It goes inside your character's master_postinit, like so:

local master_postinit = function(inst)    -- choose which sounds this character will play    inst.soundsname = "willow"    -- Stats	    inst.components.health:SetMaxHealth(150)    inst.components.hunger:SetMax(150)    inst.components.sanity:SetMax(200)        inst.components.temperature.mintemp = 20end
So, yes, under your character stats/abilities section, if that's how you understand it. Edited by Ryuushu
Link to comment
Share on other sites

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
 Share

×
  • Create New...