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!
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
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.