OpenSim.Region.ScriptEngine.Shared.Api.LSL_Api.llGetAgentLanguage C# (CSharp) Method

llGetAgentLanguage() public method

public llGetAgentLanguage ( string id ) : OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString
id string
return OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString
        public LSL_String llGetAgentLanguage(string id)
        {
            // This should only return a value if the avatar is in the same region, but eh. idc.
            m_host.AddScriptLPS(1);
            if (World.AgentPreferencesService == null)
            {
                Error("llGetAgentLanguage", "No AgentPreferencesService present");
            }
            else
            {
                UUID key = new UUID();
                if (UUID.TryParse(id, out key))
                {
                    return new LSL_String(World.AgentPreferencesService.GetLang(key));
                }
            }
            return new LSL_String("en-us");
        }
        /// <summary>
LSL_Api