The "vngen_instance_change" Function
#
SyntaxArgument | Type | Description |
---|---|---|
object | object | The object to create a new instance of |
[perform] | boolean | Optional: Enables or disables performing Destroy and Create Events on replace |
#
DescriptionSafely clears the current VNgen object from memory while creating a new object in its place. While it is not required for the new object to contain VNgen script, it is required to run this script to change an object that does.
By default, this script will perform the Create and Destroy events of the new object. To disable this behavior, set the 'perform' argument to false.
To end a VNgen object without replacing it with a new one, see vngen_object_clear
.