• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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

Status
Not open for further replies.
Level 7
Joined
Mar 16, 2014
Messages
169
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
169
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 45
Joined
Feb 27, 2007
Messages
5,578
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