Skip to main content

The "vngen_attach_destroy" Function

Syntax#

vngen_attach_destroy(name, id, transition, duration, [ease]);
ArgumentTypeDescription
namestringThe ID of the attachment parent character
idreal/stringThe ID of the attachment to destroy (or keyword all for all attachments)
transitionscriptSets the transition animation to perform
durationrealSets the length of the transition animation, in seconds
[ease]integer/macroOptional: Sets the ease override for the transition script

Description#

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.

See Included Animations and Macros & Keywords for a list of available transition animations and ease modes.

Example#

vngen_event() {
vngen_attach_destroy("John Doe", "attach", trans_fade, 2, ease_sin_in);
}