kallieblakie
New Member
- Reaction score
- 5
When a hero dies, it triggers and automatically revives after X- seconds at the (player start location)[triggered, like dota]. But if I revive it using the taven (paying some gold) via ability [Revive Hero Instantly], it does not revive at the (player start location), but revives beside the taven. How do i trigger it such that it revives at the (player start location)?
I'm currently using this code that doesn't work.
Elf, Orc, HumanSpawn refers to the region around the taven. But it doesn't work.
I'm currently using this code that doesn't work.
Code:
Forced Revival
Events
Unit - A unit Is issued an order with no target
Conditions
(Issued order) Equal to (Order(awaken))
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Casting unit)) Equal to Player 1 (Red)
Then - Actions
Unit Group - Pick every unit in (Units in Elfspawn <gen>) and do (Actions)
Loop - Actions
Unit - Move (Picked unit) instantly to ((Owner of (Triggering unit)) start location)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Casting unit)) Equal to Player 5 (Yellow)
Then - Actions
Unit Group - Pick every unit in (Units in OrcSpawn <gen>) and do (Actions)
Loop - Actions
Unit - Move (Picked unit) instantly to ((Owner of (Triggering unit)) start location)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Casting unit)) Equal to Player 9 (Gray)
Then - Actions
Unit Group - Pick every unit in (Units in HumanSpawn <gen>) and do (Actions)
Loop - Actions
Unit - Move (Picked unit) instantly to ((Owner of (Triggering unit)) start location)
Else - Actions
Elf, Orc, HumanSpawn refers to the region around the taven. But it doesn't work.