• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] Doesn't kill timer after TriggerSleepAction

Status
Not open for further replies.
Level 3
Joined
Feb 17, 2008
Messages
41
JASS:
function FirstWave takes nothing returns nothing
  local timer t = CreateTimer()
  local integer i
    set udg_hero = 'H005'
    set udg_tier1 = 'u000'
    set udg_ntier1 = 30
    set i = udg_ntier1 / 2
    call BJDebugMsg("First Wave")
   // call TriggerExecute( gg_trg_Cinematic )
    call DestroyTimerDialog(udg_CurrentTD)
    
    call TimerStart(t, .50,true, function StartFirstWave)
    call PolledWait(15)
    call BJDebugMsg("Timer Killed")
    call DestroyTimer(t)
    //Jass is gay and this doesnt work.

After the timer finishes it doesn't call anything after the PolledWait or the TriggerSleepAction.

Any ideas? Yes, I'm fairly new with jass. something I need to know about?
 
Status
Not open for further replies.
Top