• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 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!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

Hero resurection system.

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 63
Joined
Jan 18, 2005
Messages
27,156
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.
 
Level 4
Joined
Feb 26, 2010
Messages
42
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
 

Dr Super Good

Spell Reviewer
Level 63
Joined
Jan 18, 2005
Messages
27,156
native void UnitRevive (unit inUnit);

This native will probably revive the unit where it died when called. Thus you will need to accompany it with some calls to move the unit to where you want.

WC3 revival definatly is possible and many maps use it already. Just I have not personally tried it.
 

Dr Super Good

Spell Reviewer
Level 63
Joined
Jan 18, 2005
Messages
27,156
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.
Top