nut.char.registerVar - brianhang/nutscript2 GitHub Wiki

Description

nut.char.registerVar(name, properties)

This shared function adds a variable for a character. Character variables can be used to add features for characters.

Parameters

Name Description
name The string name of the variable.
properties A list of properties for the variable. See CharVarStruct.

Side Effects

Errors

  • properties is not a table