Mantis#1942. Thank you kindly, Tyre for a patch that:
updates llTriggerSound() so it accepts an object inventory name too This adds the same functionality like Xantor's patch for llPlaySound()0.6.0-stable
parent
4a2d5d92cc
commit
9f9e7d98ea
|
@ -1807,7 +1807,8 @@ namespace OpenSim.Region.ScriptEngine.Common
|
|||
public void llTriggerSound(string sound, double volume)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
m_host.SendSound(sound, volume, true, 0);
|
||||
// send the sound, once, to all clients in range
|
||||
m_host.SendSound(KeyOrName(sound).ToString(), volume, false, 0);
|
||||
}
|
||||
|
||||
// Xantor 20080528: Clear prim data of sound instead
|
||||
|
|
|
@ -1659,7 +1659,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
public void llTriggerSound(string sound, double volume)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
m_host.SendSound(sound, volume, true, 0);
|
||||
// send the sound, once, to all clients in range
|
||||
m_host.SendSound(KeyOrName(sound).ToString(), volume, false, 0);
|
||||
}
|
||||
|
||||
// Xantor 20080528: Clear prim data of sound instead
|
||||
|
|
Loading…
Reference in New Issue