ScriptEvent:syncCallback

From Mod Wiki

Parameters

string name -- Name of the synced variable.
string callback -- Name of the function to call when the value changes.

Result

None.

Supported By

sdTeamInfo
idEntity

Comments

  • The variable must have already been synced using either sync or syncBroadcast.
  • The callback must be a function on the same script object.

Functionality

Sets up a callback to be called whenever the given variable is updated from the server.