• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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).
 
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.
Back
Top