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
- The Character metatable is modified.
Errors
propertiesis not atable