ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:syncvariable

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
functions:syncvariable [2017/07/16 17:25]
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]]. SyncVariable optimizes network traffic to only send packets when the synchronized variable changes.+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.
  
 This function works by spawning an undetectable indestructible actor the first time it's called and using its Speed property to synchronize the value. This function works by spawning an undetectable indestructible actor the first time it's called and using its Speed property to synchronize the value.
functions/syncvariable.1500215140.txt.gz · Last modified: 2017/07/16 17:25 by korshun