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

[Trigger] Potential desync with getlocalplayer whiting out a player's screen

Status
Not open for further replies.
Level 7
Joined
Mar 16, 2014
Messages
152
I have a spell that when cast, wipes the player's screen for a few seconds to white. My map is desyncing a lot and getlocalplayer apparently causes desyncs. Should this trigger be causing desyncs? The spell has been used countless times without desyncing.

YyOxUTQ.png
 
Level 39
Joined
Feb 27, 2007
Messages
5,013
Looks fine to me but perhaps only put the DisplayCineFilter lines inside the local if block. Everything else can be done outside of the block and then just show the filter for a specific player. You could also do it without ifblocks at all and just write call DisplayerCineFilter(GetLocalPlayer() == Player(udg_FlashbangPlayerNumber)).
 
Status
Not open for further replies.
Top