The "vngen_label_replace" Function
vngen_label_replace(id, label, font, color, duration, [ease], [lang]);
|real/string||The ID of the label to replace|
|string/macro||The text string to display as a label (or keyword |
|font/macro||The font to draw text in, where |
|color/macro||The color to draw text in, where |
|real||Sets the duration of the fade transition, in seconds|
|integer/macro||Optional: Sets the ease mode to perform the transition in|
|real/string||Optional: Sets the language flag for the label|
Replaces the input entity ID with a new string of text and fades the old label 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 style modes and ease modes.
vngen_label_replace("label", auto, previous, inherit, 3);
vngen_label_replace("label", "Jane Doe", fnt_Arial, c_white, 3, "en-US");