The "vngen_attach_replace_ext" Function
#
SyntaxArgument | Type | Description |
---|---|---|
name | string | The ID of the attachment parent character |
id | real/string | The ID of the attachment to replace |
sprite | sprite | The new sprite to display as a attachment |
xorig | real/macro | The new horizontal sprite offset, or origin point, relative to the top-left corner |
yorig | real/macro | The new vertical sprite offset, or origin point, relative to the top-left corner |
scaling | integer/macro | Sets the new automatic scaling mode for the attachment, relative to the parent character |
duration | real | Sets the duration of the fade transition, in seconds |
ease | integer/macro | Sets the ease mode to perform the fade transition in |
#
DescriptionReplaces the input entity ID with a new sprite and extra sprite properties and fades the old sprite to the new one over the input duration.
As with other types of modifications, replacements made with this script are permanent and will persist until another replacement is performed. This script cannot be performed simultaneously with other replacement actions operating on the same entity ID.
See Macros & Keywords for a list of available origin points, scaling modes, and ease modes.