KILLJAW
New Member
- Reaction score
- 0
Ok, I've designed this trigger to respawn a hero once it dies. The countdown timer works exactly how i want it to, but nothing else does. The pan camera and the actual revival itself don't work. Can anyone shed some light on this?
Code:
Hero Respawn
Events
Unit - A unit Dies
Conditions
Actions
Set TempUnit1 = (Dying unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(TempUnit1 is A Hero) Equal to True
Then - Actions
Countdown Timer - Start RespawnTime as a One-shot timer that will expire in 30.00 seconds
Countdown Timer - Create a timer window for RespawnTime with title ((Name of (Owner of TempUnit1)) + 's Revival)
Wait 24.50 seconds
Countdown Timer - Change the color of the time for (Last created timer window) to (100.00%, 0.00%, 0.00%) with 0.00% transparency
Set TempPoint = (Center of Respawn <gen>)
Camera - Pan camera for (Owner of TempUnit1) to TempPoint over 5.00 seconds
Wait 5.50 seconds
Set TempPoint = (Random point in Respawn <gen>)
Hero - Instantly revive TempUnit1 at TempPoint, Show revival graphics
Countdown Timer - Destroy (Last created timer window)
Custom script: call RemoveLocation(udg_TempPoint)
Else - Actions
Do nothing
Set TempUnit1 = No unit
Unit - Add a 0.00 second Generic expiration timer to TempUnit1