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

llTriggerSound() public method

public llTriggerSound ( string sound, double volume ) : void
sound string
volume double
return void
        public void llTriggerSound(string sound, double volume)
        {
            if (!ScriptProtection.CheckThreatLevel(ThreatLevel.None, "LSL", m_host, "LSL", m_itemID)) return;

            // send the sound, once, to all clients in range
            m_host.SendSound(KeyOrName(sound, true).ToString(), volume, true, 0, 0, false, false);
        }
LSL_Api