W
WIWO
Guest
Heya, yesterday I asked for help with my King of the Hill Timer (a unit enters region and triggers a timer, when timer expires unitowner win), and got a really nice answer.
However, it seems like only Player 1 can trigger the timer. All other players can trigger the timer window, but not the actual timer, anyone who knows why? I can't see any problem in my code:
Regards, WIWO
EDIT: Uploaded a picture to show how it looks like (and yes, its not just the timer not showing, it doesnt start)
However, it seems like only Player 1 can trigger the timer. All other players can trigger the timer window, but not the actual timer, anyone who knows why? I can't see any problem in my code:
Code:
enters
Events
Unit - A unit enters woe <gen>
Conditions
((Entering unit) is A Hero) Equal to True
Actions
Set plrnmr = (Player number of (Owner of (Triggering unit)))
Set kingunit[plrnmr] = (Triggering unit)
Countdown Timer - Start wintime[plrnmr] as a One-shot timer that will expire in 180.00 seconds
Countdown Timer - Create a timer window for wintime[plrnmr] with title ((Name of (Owner of (Triggering unit))) + )
Set wintimerwindow[plrnmr] = (Last created timer window)
Countdown Timer - Show (Last created timer window)
Trigger - Add to leaves <gen> the event (Unit - A unit leaves woe <gen>)
Trigger - Add to wins <gen> the event (Time - wintime[(Player number of (Triggering player))] expires)
EDIT: Uploaded a picture to show how it looks like (and yes, its not just the timer not showing, it doesnt start)