Jump to content

Cant make character stats be affected by temperature.


Recommended Posts

This is my first time coding lua, and DST in general, so I dont know where to look for the things that I need.

Im trying to make my character's stats increase and decrease with temperature, but it does not seem to work. 

This is what I tried doing:

 

inst.components.health:SetMaxHealth(TUNING.CHARACTER_HEALTH * inst.components.temperature.current / 40)

inst.components.combat.damagemultiplier = inst.components.temperature.current / 40

A helping hand would be highly appreciated. ^^

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...