Jump to content
Sign in to follow this  
Atsumori

Body temperature

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


 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...