Skip to content

Set Localization

Set Localization

Changes the active localization used by the engine.

Properties

System

Name Explanation Type
Localization The index of the localization to use, corresponding to a localization defined in the database. Variable or Value

Examples

Set Localization to First Language

Changes the active localization to the first language defined in the database.

set_localization("0");
{"Data":{"Localization":{"IsGlobalVariable":false,"IsLocalVariable":false,"IsValue":true,"Value":"0","VariableIndex":0,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.Shared.Models.Scripts.Commands.System.SetLocalizationCommand"}

Set Localization from a Variable

Changes the active localization using the index stored in global variable 0.

set_localization($gv[0]);
{"Data":{"Localization":{"IsGlobalVariable":true,"IsLocalVariable":false,"IsValue":false,"Value":"0","VariableIndex":0,"Metadata":null},"Metadata":null},"TypeName":"MAR.Game.Shared.Models.Scripts.Commands.System.SetLocalizationCommand"}