- Joined
- Sep 26, 2009
- Messages
- 9,521
When you use SyncStoredInteger/Real/Boolean/etc. what exactly is there to be synced?
For example I want to give an integer to each player id, locally, and then sync it.
Anyone know which value will be synced? Will it be the 1 or the 0? Would it be better if I just only stored an integer for the local player and stored nothing for the others?
For example I want to give an integer to each player id, locally, and then sync it.
JASS:
call StoreInteger(gc, "-", I2S(i), IntegerTertiaryOp(GetLocalPlayer() == Player(i), 1, 0))
call SyncStoredInteger(gc, "-", I2S(i))
...
call TriggerSyncReady()
Anyone know which value will be synced? Will it be the 1 or the 0? Would it be better if I just only stored an integer for the local player and stored nothing for the others?