ScriptEvent:setCallback

From Mod Wiki

Parameters

string name -- Name of the function to use as a callback.

Result

None.

Supported By

sdCVarWrapper

Comments

  • Only one callback may be active per wrapper at a time.
  • Supplying a class method as the callback will have undefined behaviour.

Functionality

Specifies a global namespace function to be called whenever the value of this cvar changes.