Aurora.ScriptEngine.AuroraDotNetEngine.APIs.LSL_Api.llRegionSay C# (CSharp) Метод

llRegionSay() публичный Метод

public llRegionSay ( int channelID, string text ) : void
channelID int
text string
Результат void
        public void llRegionSay(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);

            if (channelID == 0) //0 isn't normally allowed, so check against a higher threat level
                if (!ScriptProtection.CheckThreatLevel(ThreatLevel.Moderate, "LSL", m_host, "LSL", m_itemID)) return;
            
            IChatModule chatModule = World.RequestModuleInterface<IChatModule>();
            if (chatModule != null)
                chatModule.SimChat(text, ChatTypeEnum.Region, channelID,
                    m_host.ParentEntity.RootChild.AbsolutePosition, m_host.Name, m_host.UUID, false, World);
            
            if (m_comms != null)
                m_comms.DeliverMessage(ChatTypeEnum.Region, channelID, m_host.Name, m_host.UUID, text);
        }
LSL_Api