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

Is it possible to revive dead units with triggers?

Status
Not open for further replies.
Level 12
Joined
May 22, 2015
Messages
1,051
Basically the title. I want to know if I can reanimate units without using the built-in abilities (resurrection and animate dead). Or would I need to fake it and spawn new units of the same unit type as the dead ones?
 
What jwx555 said is that it is impossible to do so.
However, there is not a direct way to do it but you can recreate the unit.

Set TempUnit = (your dead unit)
Set TempLocation = (Position of TempUnit)
Unit - Create 1 (unit-type of dead unit) at TempLocation facing (Facing angle of TempUnit) degrees.
Unit - Remove TempUnit from the game.
Custom Script: call RemoveLocation(udg_TempLocation)
 
Nah, they need to die for real and be revived by a spell. You get money by killing them and reincarnate doesn't trigger "unit dies". They may also revive under another player's control.

Jass is fine. Seems like I need to fake it, but that is fine with me.
 
Status
Not open for further replies.
Back
Top