Atsumori Posted September 29, 2020 Share 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 Link to comment Share on other sites More sharing options...
Atsumori Posted November 10, 2020 Author Share Posted November 10, 2020 No errors, it just doesn't seems to apply on the right place so temperature doesnt change Link to comment Share on other sites More sharing options...
Asilar Posted November 10, 2020 Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now