Difference between revisions of "ScriptEvent:setCallback"

From Mod Wiki
 
(No difference)

Latest revision as of 17:51, 5 November 2007

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.