• 🏆 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!

Immortality through negative life regen

Status
Not open for further replies.
Level 15
Joined
Nov 30, 2007
Messages
1,202
if you give a unit 1 hp and then set its life regeneration to -9999999 (tested in object editor) it will become unkillable by spells and damage! Only drawback is the hp bar being "dead" - but that could be solved by setting selection circle to 0.01. Have fun.
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
I did not know it, yet I doubt it has much pratical use. The alternative is to set max life to <= 0. If you add max hp via trigger then, the unit becomes mortal. This is not the case with the method here, but in exchange you cannot sensefully use hitpoints or would have to resort to expensive triggering to make up for it. At this point you can as well control the other option.
 
Status
Not open for further replies.
Top