🏆 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!
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.