The "vngen_emote_destroy" Function

Syntax

vngen_emote_destroy(id, wait);

Enables or disables waiting for the sprite animation to complete before destroying

Description

Destroys the input entity ID, freeing its resources from memory. Can also wait until the current sprite animation is complete before destroying. Once a given ID has been destroyed, it can be created again with the same ID.

Note that this script is only required to destroy looped emotes, as non-looped emotes self-destruct automatically.

Example

vngen_event() {
vngen_emote_destroy("emote_tears", true);
}