• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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