Staredit Network > Forums > SC2 Assistance > Topic: Timers
Timers
Aug 22 2010, 8:34 pm
By: Alzarath  

Aug 22 2010, 8:34 pm Alzarath Post #1

Praetor

So here's what I have:

Code
   Actions
       Timer - Start Obliteration Timer as a One Shot timer that will expire in 10.0 Real Time seconds
       Timer - Create a timer window for Obliteration Timer, with the title "Obliteration", using Remaining time (initially Visible)
       Timer - Set timer for Obliteration Timer Window to (Last started timer)
       General - Wait 10.0 Real Time seconds
       Timer - Destroy Obliteration Timer Window


The timer starts up and counts down well, but the timer isn't removed.



None.

Aug 22 2010, 9:03 pm Temp Post #2



Do you mean the timer window or the timer?



None.

Aug 22 2010, 9:11 pm Ahli Post #3

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

TimerStart((TimerCreate()),5.0,false,c_timeGame)
TimerWindowCreate((TimerLastStarted()),"",true,false)
TimerWindowSetTimer((TimerWindowLastCreated()),(TimerLastStarted()))
Wait(5.0,c_timeGame)
TimerWindowDestroy((TimerWindowLastCreated()))


That works for me. I think I'm doing the same except the time and time type. :S
Maybe try it with saving the window in a variable...




Aug 22 2010, 9:15 pm Alzarath Post #4

Praetor

I already have it in a variable. Maybe that's what's wrong.

Yup, got rid of adding it to a variable and just made it 'Last Created timer window'. Works fine now.

Post has been edited 1 time(s), last time on Aug 22 2010, 9:30 pm by Artanis186.



None.

Aug 22 2010, 11:58 pm Temp Post #5



That may be because you never set the variable to the last created timer window.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:13 am]
DarkenedFantasies -- :sneaky:
[01:03 am]
O)FaRTy1billion[MM] -- but from one person all at once?
[01:02 am]
RIVE -- Eh, I've seen more. :wob:
[01:01 am]
O)FaRTy1billion[MM] -- thats a lotta wob
[07:30 pm]
Symmetry -- But why
[06:21 pm]
lil-Inferno -- :wob:
[03:43 pm]
Apos -- :wob:
[03:43 pm]
Apos -- :wob:
[03:43 pm]
Apos -- :wob:
[03:43 pm]
Apos -- :wob:
Please log in to shout.


Members Online: Excalibur, RIVE