HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

will this desync?

01-03-2008, 03:20 PM#1
cohadar
Collapse JASS:
   
    if GetLocalPlayer()==GetOwningPlayer(GetEnumUnit()) then
        call SetUnitColor(u, PLAYER_COLOR_RED)
    endif

Pay special attention to the enum part, this is called inside a ForGroup....
01-03-2008, 03:28 PM#2
Zandose
My definition is desyncers is anything which will cause data to mess up. local special effects don't change any gameplay constants (units, terrain height, etc.) and therefore won't cause any of the game data to be different to any players. Sspecial effects can be seem but nothing else; it has no body, collision, etc. Therefore, I conclude that changing the color, although seen by one player only, does not effect gameplay constants. But of course I could be wrong in everything I'm saying and your probably testing it at this very moment.
01-03-2008, 03:38 PM#3
Tide-Arc Ephemera
I am pretty sure that will not desync. It's merely a graphical interface.

Only object data (doodads, units, items, unit orders etc) will cause desyncs.
01-03-2008, 04:29 PM#4
Ammorth
It should be fine. The If comparison will happen for all computers (calling the GetEnumUnit() ).

The function inside the if is fine since this is the same principle the AllyColor buttons works (the one beside the minimap).
01-03-2008, 07:16 PM#5
DioD
wont desync.
01-03-2008, 08:46 PM#6
cohadar
I tested it on bnet and it did not desync. case closed.