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

llWhisper() public method

public llWhisper ( int channelID, string text ) : void
channelID int
text string
return void
        public void llWhisper(int channelID, string text)
        {
            if (!ScriptProtection.CheckThreatLevel(ThreatLevel.None, "LSL", m_host, "LSL", m_itemID)) return;


            if (text.Length > 1023)
                text = text.Substring(0, 1023);

            IChatModule chatModule = World.RequestModuleInterface<IChatModule>();
            if (chatModule != null)
                chatModule.SimChat(text, ChatTypeEnum.Whisper, channelID,
                    m_host.ParentEntity.RootChild.AbsolutePosition, m_host.Name, m_host.UUID, false, World);

            if (m_comms != null)
                m_comms.DeliverMessage(ChatTypeEnum.Whisper, channelID, m_host.Name, m_host.UUID, text);
        }
LSL_Api