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

help me fix getlocalplayer desyncs

Level 7
Joined
Mar 16, 2014
Messages
152
Pushing esc usually causes a desync for the player who pushed esc. I have used these kinds of effects with getlocalplayer in the past, any suggestions?

Trigger does what it's supposed to do in single player fine.

  • Types Popup
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
      • Player - Player 2 (Blue) skips a cinematic sequence
      • Player - Player 3 (Teal) skips a cinematic sequence
      • Player - Player 4 (Purple) skips a cinematic sequence
      • Player - Player 5 (Yellow) skips a cinematic sequence
      • Player - Player 6 (Orange) skips a cinematic sequence
      • Player - Player 7 (Green) skips a cinematic sequence
      • Player - Player 8 (Pink) skips a cinematic sequence
      • Player - Player 9 (Gray) skips a cinematic sequence
      • Player - Player 10 (Light Blue) skips a cinematic sequence
      • Player - Player 11 (Dark Green) skips a cinematic sequence
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Name of (Triggering player)) Not equal to WorldEdit
        • Then - Actions
          • Set VariableSet TypeChartPlayerNumber = ((Player number of (Triggering player)) - 1)
          • Trigger - Run Types Popup 2 <gen> (ignoring conditions)
        • Else - Actions
          • Cinematic - Clear the screen of text messages for (Player group((Triggering player))).

  • Types Popup 2
    • Events
    • Conditions
    • Actions
      • Custom script: local player p=Player(udg_TypeChartPlayerNumber)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • PlayerTypePopup[TypeChartPlayerNumber] Equal to False
        • Then - Actions
          • Cinematic - Clear the screen of text messages for (Player group((Player((TypeChartPlayerNumber + 1))))).
          • Custom script: if GetLocalPlayer()==p then
          • Cinematic - Fade out over 0.00 seconds using texture war3mapImported\Types10.tga and color (100.00%, 100.00%, 100.00%) with 0.00% transparency
          • Custom script: endif
          • Set VariableSet PlayerTypePopup[TypeChartPlayerNumber] = True
        • Else - Actions
          • Custom script: if GetLocalPlayer()==p then
          • Cinematic - Fade in over 0.00 seconds using texture war3mapImported\Types10.tga and color (100.00%, 100.00%, 100.00%) with 100.00% transparency
          • Custom script: endif
          • Set VariableSet PlayerTypePopup[TypeChartPlayerNumber] = False
 
Top