HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Quick Question on Desyncs

04-09-2008, 03:39 AM#1
Joker
Is it possible to have a desync in a trigger that does not use GetLocalPlayer() (Both directly and indirectly) ?

If yes, what would be the other cases?
04-09-2008, 03:53 AM#2
Vexorian
Yes.

GetLocalPlayer() is not the only function that's local.
04-09-2008, 04:31 AM#3
PandaMine
Any function that returns value about a specific value which would differ from other players generally desync (these include the Camera functions for example)
04-09-2008, 04:57 AM#4
Joker
Well to do something to specific player, don't you always need GetLocalPlayer()? Functions that already take players and one of their arguements wouldn't desync, right?
04-09-2008, 05:46 AM#5
Pyrogasm
Look them up in Blizzard.j; sometimes those functions include LocalPlayer blocks in them themselves.
04-10-2008, 01:55 AM#6
PandaMine
All GetLocalPlayer does is restrict the returning data from asynchronous functions to a certain player (i.e. computer) so that it wont cause a desync

Its other use is it allows you to execute code on single computers, however it cant actually alter the gameplay (you cant for example create a destructable on just a single computer)