HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

TimerGetRemaining on a destroyed timer

09-01-2007, 08:23 PM#1
darkwulfv
Were I to use TimerGetRemaining on a destroyed timer, will it return 0 or the actual remaining time? eg:

Collapse JASS:
loop
  exitwhen TimerGetRemaining(timer) == 0
  //actions
  if boolean = true then
  call DestroyTimer(timer)
  endif
  endloop

Should boolean check out as true and the timer gets destroyed, will the loop stop because TGR returns 0?
09-01-2007, 08:35 PM#2
Toadcop
it's so hard to test ?! O_o (i dunno maybe it will return the actual time but i am not sure)
09-01-2007, 08:39 PM#3
darkwulfv
I'm away from my wc3 computer, so i can't really test.
09-02-2007, 12:24 AM#4
Toadcop
0.000
09-02-2007, 03:20 AM#5
darkwulfv
Thank you, that's very helpful. +rep.