Atsumori 9 Posted September 29, 2020 HALP!!11eleven!!11 So, i've been trying to make a specific function set the body/core temperature back to normal but whatever variation i try the game doesn't applies, works great for bodydamage/stats but not for temperature, any ideas? Appreciate. Quote function ISreleaseheat:perform() if self.item then self.character:getStats():setEndurance(1) self.character:getBodyDamage():setWetness(0) self.character:getStats():setThirst(self.character:getStats():getThirst() + 0.8) self.character:getBodyDamage():setTemperature(self.character:getStats():getTemperature() - 20) end ISBaseTimedAction.perform(self); end Quote Share this post Link to post Share on other sites
burbigo1 2 Posted September 29, 2020 What's that specific function ? And do you get an error message/code while doing that ? Quote Share this post Link to post Share on other sites
Atsumori 9 Posted November 10, 2020 No errors, it just doesn't seems to apply on the right place so temperature doesnt change Quote Share this post Link to post Share on other sites
Asilar 4 Posted November 10, 2020 (edited) Hi, Can you try to add some debug lines ? print( self.character:getBodyDamage():getTemperature() ) for example, to check in the console.txt what it returns. Also, are you sure that Temperature is under bodyDamage ? Isn't it under Stats ? Also, are you sure that you have to assign value in the parenthesis of the function ? Did you try something like : self.character:getBodyDamage():setTemperature() = YourValue Also, you should visit the PZ Modding discord channel on the PZ official discord. Edited November 10, 2020 by Asilar Quote Share this post Link to post Share on other sites