Jump to content

Special characgter coding.


Recommended Posts

Hello! I am currently looking for a way to implement a code to where 

*A player's character can be in the winter with no insulation but has to cool down in the summer 

(the character is made of ice, so does fine in the winter, and nothing happens when they stand next to an endothermic fire)

*A player's character can be in the summer with no cooling items but has to insulate in the summer, as well as glow as if they were holding a torch 

(the character is made of fire, so does fine in the summer, and nothing happens when they stand next to a normal fire)

Any help would be extremely appreciated, as I am new to coding and still learning how these things work

Link to comment
Share on other sites

    inst.components.temperature.mintemp = 10     (temperature at which he freezes i think)

    inst.components.temperature.overheattemp = 65  (temperature at which he overheats)

 

this should help , however this is only for the ice guy

Edited by thomas4845
forgot something
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...