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

[General] Simple Question, can the "Wait" command desync games?

Status
Not open for further replies.
Level 7
Joined
Mar 16, 2014
Messages
152
The wait command causing desync in online games is a long running assumption I'd heard from some world editor guides in the past. Assuming your map is multiplayer, wait should never be used, only timers, because wait will desync the game. I've used timers only ever since. Is this at all correct?
 
Level 7
Joined
Mar 16, 2014
Messages
152
Local actions meaning event responses like dying unit, correct? So something like this would be unacceptable?

0DSR4Ch.png


(This also leaks a location as well, correct?)
 
Level 39
Joined
Feb 27, 2007
Messages
4,992
No, nothing wrong with what you wrote. Yes it leaks a location. In this context "local" means "for one/some players but not all players", which you accomplish through this:

  • Custom script if GetLocalPlayer() == WhateverPlayerYouWant then
  • -------- do things here, but desyncs can happen --------
  • Custom script: endif
 
Status
Not open for further replies.
Top