• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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