This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
functions:syncvariable [2017/07/16 17:26] – korshun | functions:syncvariable [2018/02/19 23:01] (current) – korshun | ||
---|---|---|---|
Line 6: | Line 6: | ||
===== Description ===== | ===== Description ===== | ||
- | Synchronizes an arbitrary numeric variable from server to all clients using an unused tid. The synchronized value can be read clientside using [[GetSyncVar]] and [[GetSyncVarDefaut]]. | + | Synchronizes an arbitrary numeric variable from server to all clients using an unused tid. The synchronized value can be read clientside using [[GetSyncVar]] and [[GetSyncVarDefault]]. |
SyncVariable optimizes network traffic to only send packets if the synchronized variable is different. | SyncVariable optimizes network traffic to only send packets if the synchronized variable is different. |