ScriptEvent:syncCallback

From Mod Wiki
Revision as of 18:18, 5 November 2007 by Wizz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.