Jump to content

Recommended Posts

Posted

Hi,

 

I noticed the following in the patch notes:

 

  • Scripting. The scripting function Unit.getLife() returns a value that is 1 higher than what the units actual health is - fixed.

 

What does this mean for scripting? Do I have to check whether a unit is alive by doing if (unit:GetLife() > 1.0) as before? Or does GetLife now return values between 0.0 and 1.0 as one would expect?

 

 

 

Posted
55 minutes ago, Toumal said:

Hi,

 

I noticed the following in the patch notes:

 

  • Scripting. The scripting function Unit.getLife() returns a value that is 1 higher than what the units actual health is - fixed.

 

What does this mean for scripting? Do I have to check whether a unit is alive by doing if (unit:GetLife() > 1.0) as before? Or does GetLife now return values between 0.0 and 1.0 as one would expect?

 

 

 

Explanation of the issue by Grimes here

 

 

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...