Jump to content

Body temperature


Atsumori

Recommended Posts

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. (clyde)

 

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

  • 1 month later...

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 by Asilar
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
×
×
  • Create New...