• 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] Timers

Status
Not open for further replies.
Level 5
Joined
Feb 22, 2013
Messages
161
Now that I think about it, yes it will lol... So you can set a local variable for the timer window and set the variable to the timer itself and then after the that call the function so it should look like this:

JASS:
function Timer takes nothing returns nothing
    // local timer tim = CreateTimer() -----> Don't worry about this
    local timerdialog tw
    
    if GetLocalPlayer() == Player("player number") then
        set tw = bj_lastStartedTimer
    endif
    call TimerDialogDisplay(tw, true)
endfunction

Maybe... lol
 
Level 23
Joined
Apr 16, 2012
Messages
4,041
I would set tw to null when declared, just to make sure, your current way the TimerDialogMessage will crash the thread for all players but "player number"

however, Im not sure whether or not it causes the game to crash or not
 
Status
Not open for further replies.
Top