mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 08:06:27 +08:00
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()
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user