Nut.char.hookVar

From Nutscript Developer Wiki
    nut.char.hookVar(varName, hookName, func)

This function creates a hook for specified variable. So, it's a basically adds a function that runs when the variable is changed. For example, when the character's model path has changed, The server changes the current model of the owner of the character to the new model path.

Arguments[edit]

  • String varName
  • String hookName
  • Function func

It's the function to run when the variable has changed.

Return Values[edit]

none.

Examples[edit]

none.