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

Small lag with play music

Status
Not open for further replies.
Level 3
Joined
Dec 31, 2008
Messages
46
Is there a way to get around the small lag when these actions run?
  • Set MusicPlayer = (Owner of (Attacking unit))
  • Custom script: if GetLocalPlayer() == udg_MusicPlayer then
  • Sound - Play CombatMusic <gen>
  • Custom script: endif
 
Level 3
Joined
Dec 31, 2008
Messages
46
The small lag is caused by the GetLocalPlayer()
It is impossible to change that. It should be next to unnoticeable though.
Can you show the whole trigger ?
Also make sure other triggers are not trying to pause / resume music as that may slow it down also.

The lag was almost 1 second long everytime the music changed.

Try "Sound - Stop Music Immediatly" before you play a new music.

Worked perfectly. Thank you +rep
 
Status
Not open for further replies.
Top