CreateNodeFromClass(classname as string)
- The class from which to make the node.
Create a node from a specified class. A node can have any number of classes on it, though the first one it is declared as becomes its "base class." This is just like standard object oriented inheritance.
If a character has non-persistent nodes associated (such as objects in a backpack), then these nodes will vanish whenever the player leaves an area. In other words, if a player is manipulating nodes in different areas, it is best to make those nodes persistent. To do this, use the Create Persisted Node From Class built-in function.
For more information, please see the section on Node Creation.
box as noderef box = CreateNodeFromClass("container") sword as noderef = CreateNodeFromClass("thingie")
- CNFC, related CLI command