diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index 32405d7..6168fe0 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -4279,5 +4279,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
4279 | else | 4279 | else |
4280 | m_host.CollisionSoundType = -1; | 4280 | m_host.CollisionSoundType = -1; |
4281 | } | 4281 | } |
4282 | |||
4283 | // still not very usefull, detector is lost on rez, restarts, etc | ||
4284 | public void osVolumeDetect(int detect) | ||
4285 | { | ||
4286 | m_host.AddScriptLPS(1); | ||
4287 | |||
4288 | if (m_host.ParentGroup == null || m_host.ParentGroup.IsDeleted || m_host.ParentGroup.IsAttachment) | ||
4289 | return; | ||
4290 | |||
4291 | m_host.ScriptSetVolumeDetect(detect != 0); | ||
4292 | } | ||
4293 | |||
4282 | } | 4294 | } |
4283 | } | 4295 | } |