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

Hero resurection system.

Status
Not open for further replies.
You could try the incapacitated approach. Set up a behaviour for the unit that prevents it from dieing but pauses the unit when triggered. When the unit should be revived you just remove that behaviour. The idea is you get a behaviour to run an effect when receving fatal damage that then applies a behaviour that makes the unit unkillable and paused.

You can also try using conventional revive for a WC3 style revive system. The native native void UnitRevive (unit inUnit); should provide the script interaction for reviving a unit.
 
ty you m8.I dont wont to use incapitated.I would prefer a W3 triiger like Unit dies-Unit tupe equal to hero-revive unit at point.If this simple trigger is impsible then i dought the power of galaxy editor.Thank you a lot fo answering me
 
Store the actual unit in a bank once it receives damage that would otherwise kill it.
Or if references aren't an issue, just bank the stats of the unit and store that instead. Then create a new unit and apply the stats.
I don't think storing the unit itself will break references (in terms of triggers, etc).
It still far worse than to just revive the unit. Why use a method that is slow and potentially bug prone when you can use one which is fast and bugless?
 
Status
Not open for further replies.
Back
Top