Skip to main content

The "vngen_get_lang" Function

Syntax#

vngen_get_lang(type);
ArgumentTypeDescription
typeinteger/macroSets whether to return text or audio language value

Description#

Returns the active language for the input language type. If no language has been set, -1 will be returned instead.

Note that this script is not required to perform built-in text, label, option, or voice actions in different languages, as each provides optional language restrictions already.

See Macros & Keywords for a full list of available entity types.

Example#

if (vngen_get_lang(vngen_type_text) == "en-US") {
show_message("Current text language is American English");
}