CreatePersistedNodeFromClass(classname as string)
- The class from which to make the node.
Creates a persistent 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.
Persistent nodes are stored in the database, so the node must be associated with some other node that makes it findable, otherwise it is a dead or "floating" orphaned node that cannot be accessed.
Once a persistent node has been created, there is not currently any way to change it to a non-persistent node. To make a non-persistent node, use the CreateNodeFromClass function.
Persistent nodes can also be created via the CLI, with the CNFC (Create Node From Class) command, and setting the "Persistent" flag.
box as noderef box = CreatePersistedNodeFromClass("container") sword as noderef = CreatePersistedNodeFromClass("thingie")