mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 22:26:09 +08:00
experimental function. Results still too volatile to be usefull
This commit is contained in:
@@ -4279,5 +4279,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
else
|
||||
m_host.CollisionSoundType = -1;
|
||||
}
|
||||
|
||||
// still not very usefull, detector is lost on rez, restarts, etc
|
||||
public void osVolumeDetect(int detect)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
|
||||
if (m_host.ParentGroup == null || m_host.ParentGroup.IsDeleted || m_host.ParentGroup.IsAttachment)
|
||||
return;
|
||||
|
||||
m_host.ScriptSetVolumeDetect(detect != 0);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -477,5 +477,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
|
||||
LSL_String osRequestURL(LSL_List options);
|
||||
LSL_String osRequestSecureURL(LSL_List options);
|
||||
void osCollisionSound(string impact_sound, double impact_volume);
|
||||
void osVolumeDetect(int detect);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1094,11 +1094,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||
{
|
||||
m_OSSL_Functions.osCollisionSound(impact_sound, impact_volume);
|
||||
}
|
||||
/*
|
||||
|
||||
public void osVolumeDetect(int detect)
|
||||
{
|
||||
m_OSSL_Functions.osVolumeDetect(detect);
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user