Aurora.ScriptEngine.AuroraDotNetEngine.APIs.LSL_Api.llTextBox C# (CSharp) Method

llTextBox() public method

public llTextBox ( string agent, string message, int chatChannel ) : DateTime
agent string
message string
chatChannel int
return DateTime
        public DateTime llTextBox(string agent, string message, int chatChannel)
        {
            IDialogModule dm = World.RequestModuleInterface<IDialogModule>();

            if (dm == null)
                return DateTime.Now;

            if (!ScriptProtection.CheckThreatLevel(ThreatLevel.None, "LSL", m_host, "LSL", m_itemID)) return DateTime.Now;

            UUID av = new UUID();
            if (!UUID.TryParse(agent, out av))
            {
                LSLError("First parameter to llDialog needs to be a key");
                return DateTime.Now;
            }

            if (message != null && message.Length > 1024)
                message = message.Substring(0, 1024);

            dm.SendTextBoxToUser(av, message, chatChannel, m_host.Name, m_host.UUID, m_host.OwnerID);
            return PScriptSleep(1000);
        }
LSL_Api