- Joined
- Jan 20, 2011
- Messages
- 492
Hey guys, I was trying to make a revive timer and I did successfully, but when I had a friend test the map with me we both died and the timers both popped up. Fine so far, but once we revived the Timers were still up there, and that was not suppose to happen. They were on 0.00 and every time we died it would go up to 30, but would get to 0.00 and stay on that, until we died.
The way I wanted it to be was once we die it pops up for the 30 seconds then disappears until someone dies again.
Scripting;
The way I wanted it to be was once we die it pops up for the 30 seconds then disappears until someone dies again.
Scripting;
-
Hero Revive
-
Events
- Unit - A unit Dies
-
Conditions
- ((Triggering unit) is A Hero) Equal to True
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of (Dying unit)) Equal to Player 7 (Green)
- Then - Actions
-
Else - Actions
- Countdown Timer - Start Revive as a One-shot timer that will expire in 30.00 seconds
- Countdown Timer - Create a timer window for Revive with title (Name of (Owner of (Triggering unit)))
- Countdown Timer - Show (Last created timer window)
- Wait 30.00 seconds
- Countdown Timer - Destroy (Last created timer window)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events