This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
functions:syncvariable [2017/07/16 17:13] – korshun | functions:syncvariable [2017/07/16 17:22] – korshun | ||
---|---|---|---|
Line 6: | Line 6: | ||
===== Description ===== | ===== Description ===== | ||
- | Synchronizes an arbitrary numeric variable from server to all clients. The synchronized value can be retrieved using [[GetSyncVar]] and [[GetSyncVarDefaut]]. If SyncVariable is called twice with the same value, no network traffic happens. | + | Synchronizes an arbitrary numeric variable from server to all clients |
- | This function works by spawning an undetectable indestructible actor and using its Speed property to synchronize the value. | + | This function works by spawning an undetectable indestructible actor the first time it's called |
- | <note important> | + | <note important> |
===== Examples ===== | ===== Examples ===== |