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

GetLocalPlayer() desync

Status
Not open for further replies.
Level 10
Joined
Sep 21, 2007
Messages
517
ok basically in my system a sound can be played individuall for each player, so GetLocalPlayer() does work partly, but if two players want to play the same song, it functions incorrectly, meaning the song doesnt even play or plays partly. Here is an example trigger of what i mean:
  • RestartSound
    • Events
      • Time - MusicTimer[1] expires
    • Conditions
    • Actions
      • Custom script: if GetLocalPlayer() == ConvertedPlayer(1) then
      • Sound - Play Music[ScrollMusicInt[1]]
      • Custom script: endif
      • Countdown Timer - Start MusicTimer[1] as a One-shot timer that will expire in (Length of Music[ScrollMusicInt[1]]) seconds
I did use a hashtable before this, but there was a desync bug with loading hashtable players using localplayer, but nvm that, so anyways i had to make timers like this for every player 1-12. can you tell me how to make this desync work correctly fully?
 
Status
Not open for further replies.
Top