How can i destroy a timer?

Manix

Well-Known Member
Reaction score
29
How can i destroy a countdown timer? I don't want to pause it i want to remove it ? The only functions are Start and Pause?
 

XxShadyxX

I abused the rep system.
Reaction score
81
um there is a destroy timer window trigger
you have to set a variable when you create a timer
Variable: Type:
Window Timer window
Timer Timer
Code:
Events
     Map initialization
Conditions
Actions 
     Set timer = last started timer
     Start <timer> as a one-time timer that will expire in <XX> seconds
     Create timer window for <timer>
     Set window = last created timer window
Code:
Events
<timer> expires
Condition
Action
Destroy Window
 

Manix

Well-Known Member
Reaction score
29
That destroys the window, and the timer remains, that way after 50 attempts to capture a town it will start to lag ..
 

XxShadyxX

I abused the rep system.
Reaction score
81
then use a custom script to destroy the timer
JASS:
call RemoverTimer(udg_timer)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top