vngen_char_destroy(name, transition, duration, [ease]);
|string||The ID of the character to destroy (or keyword |
|script||Sets the transition animation to perform|
|real||Sets the length of the transition animation, in seconds|
|integer/macro||Optional: Sets the ease override for the transition script|
Destroys the input entity ID, freeing its resources from memory. Can also perform an exit transition animation before destroying. Once a given ID has been destroyed, it can be created again with the same ID.
vngen_char_destroy("John Doe", trans_slide_left, 2, ease_sin_in);