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!
I can’t figure out what the problem is with the timer, which should, in theory, be adjusted to the length of the track that is currently playing, but for some reason the game just starts to lag a lot.
Maybe 'length of last played music' doesn't work and returns 0, then the timer would trigger 10000 times per second, which explains the lag.
Also you're only setting the timer duration in the initial trigger, so it will always have the duration of the first music played. You should start the timer again in the timer expires trigger to update its duration.
Print out a debug message, displaying the length of the last music track.
Game - Display to (All players) the text: (String((Length of (Last played music))))
which is 0, so the timer fires in a permanent loop, freezing the game.
I fear the function doesn't recognize calls from the custom script.
I think you have to set a real variable manually, with the length of the current track and go from there.
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.