• 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.

How do you set a unit's HP to 0 but not kill it?

Status
Not open for further replies.
Level 3
Joined
Apr 16, 2016
Messages
28
How do you set your unit HP to 0 but not kill it?

A while ago, I saw a map that did this to leave a paused-clickable "corpse" on the ground. Trying to find a way to replicate it.
 
You can create a permanent fleshy corpse via trigger. To make it clickable use an invisible dummy unit that is still selectable. Not, sure how to get it to have 0 health. Another options would be to check for location of 'smart' orders and if the target loc is within 30 of loc then do actions. It wouldn't be selectable, but it would allow you to click on a corpse and make something happen (like make items appear).
 

TKF

TKF

Level 19
Joined
Nov 29, 2006
Messages
1,267
I'm quite sure you see 1 hp as long the unit is alive. I cannot recall I've seen a 0 value.

(However there is a bug that causes "Invulnerability but attackable". Negative regen could cause the unit to never die at a very certain value (This is very rare, but I never tested with very low negative regen), but I haven't found the magical real value yet or why this bug is occurring. I doubt blizzard fixed this in the latest patch. Only normal unit in melee games with negative regen is the phoenix)

Phoenix Never die Bug - (This might occur to any other units as well if you are experimenting with negative regen, though its extremely rare to reproduce this bug)
 
Status
Not open for further replies.
Top