er2.tryLocalize 1

Resolves a localization key into the language the player is using. Text starting with # is looked up in the mission localization file; anything else is returned unchanged, so it is safe to pass any string through it.


Return value

Return TypeDescription
stringThe localized text, or the original text when it was not a key.

Parameters

ParameterTypeDescription
1stringThe text to resolve. Only strings starting with # are looked up.
2TableOptional table of values to substitute into the localized string.

Examples

No examples available.


Back to Scripting API