• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

When Does a Unit Die?

Status
Not open for further replies.
Level 9
Joined
Nov 28, 2008
Messages
704
I've been having an odd bug that happens not very often in my damage system - sometimes, a unit dies and its hp is not less than or equal to 0 (if I take their life and minus the damage event, anyways).

Does a unit die when it's hp becomes 0.405 or less? I recall seeing something about that.
 
Level 9
Joined
Nov 28, 2008
Messages
704
I'm using it in a custom damage system I'm making. I check if the EventDamage is greater than or equal to the units hp, and this fails in some rare cases. So I'm just using 0.405 then as an offset to their hp, then.

Thanks.
 
Status
Not open for further replies.
Top