• 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 i Make a Hero Ress Instantly?

Status
Not open for further replies.
Level 3
Joined
May 17, 2005
Messages
30
When a hero dies in game How do i make him Ress instantly on that exact same spot without having to use a item or building or another character?
 
Level 1
Joined
Mar 2, 2009
Messages
2
Try this:

  • Revive Hero
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) is A Hero) Equal to True
    • Actions
      • Hero - Instantly revive (Dying unit) at (Position of (Dying unit)), Show revival graphics
 
Level 4
Joined
Nov 9, 2008
Messages
112
You can using trigger..

ex:

event
-unit dies

condition
-triggering unit is hero equal true
-(you can add more condition if you want)

act
-revive triggering unit at (your position) show revival graphic



nb: Correct me if i'm wrong ;p
 
Level 14
Joined
Sep 1, 2008
Messages
475
Just make :

Event :
A unit dies

Condition :
Dying unit equal to (choose your unit)

Actions :
Set Unit_Var = Dying unit
Set Point_Var = position of Dying unit
Revive Unit_Var at Point_Var show revival graphics
Custom Script : "Set Unit_Var = null"
Custom Script : "RemoveLoc(udg_Point_Var)


Note : Unit_Var and Point_Var is a Variable :cool:
 
Level 19
Joined
Aug 24, 2007
Messages
2,888
code is correct but you dont need Unit_Var thing
you can use (Triggering Unit) inside revive action
 
Status
Not open for further replies.
Top