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?
 
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
 
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
 
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:
 
code is correct but you dont need Unit_Var thing
you can use (Triggering Unit) inside revive action
 
Status
Not open for further replies.
Back
Top