diff options
author | UbitUmarov | 2016-11-04 18:31:25 +0000 |
---|---|---|
committer | UbitUmarov | 2016-11-04 18:31:25 +0000 |
commit | bb32b3b4a14b1b231e1e821b6fe35c8cbcec5164 (patch) | |
tree | 1f116db4fa2f49cb6aeb33dd488510aecc001c86 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation | |
parent | Merge branch 'master' into httptests (diff) | |
parent | by design HUD objects are private (diff) | |
download | opensim-SC-bb32b3b4a14b1b231e1e821b6fe35c8cbcec5164.zip opensim-SC-bb32b3b4a14b1b231e1e821b6fe35c8cbcec5164.tar.gz opensim-SC-bb32b3b4a14b1b231e1e821b6fe35c8cbcec5164.tar.bz2 opensim-SC-bb32b3b4a14b1b231e1e821b6fe35c8cbcec5164.tar.xz |
Merge branch 'master' into httptests
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 85837e4..ced81ad 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -7022,6 +7022,33 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
7022 | return m_host.ParentGroup.AttachmentPoint; | 7022 | return m_host.ParentGroup.AttachmentPoint; |
7023 | } | 7023 | } |
7024 | 7024 | ||
7025 | public LSL_List llGetAttachedList(string id) | ||
7026 | { | ||
7027 | m_host.AddScriptLPS(1); | ||
7028 | |||
7029 | ScenePresence av = World.GetScenePresence((UUID)id); | ||
7030 | |||
7031 | if (av == null || av.IsDeleted) | ||
7032 | return new LSL_List("NOT_FOUND"); | ||
7033 | |||
7034 | if (av.IsChildAgent || av.IsInTransit) | ||
7035 | return new LSL_List("NOT_ON_REGION"); | ||
7036 | |||
7037 | LSL_List AttachmentsList = new LSL_List(); | ||
7038 | List<SceneObjectGroup> Attachments; | ||
7039 | |||
7040 | Attachments = av.GetAttachments(); | ||
7041 | |||
7042 | foreach (SceneObjectGroup Attachment in Attachments) | ||
7043 | { | ||
7044 | if(Attachment.HasPrivateAttachmentPoint) | ||
7045 | continue; | ||
7046 | AttachmentsList.Add(new LSL_Key(Attachment.UUID.ToString())); | ||
7047 | } | ||
7048 | |||
7049 | return AttachmentsList; | ||
7050 | } | ||
7051 | |||
7025 | public virtual LSL_Integer llGetFreeMemory() | 7052 | public virtual LSL_Integer llGetFreeMemory() |
7026 | { | 7053 | { |
7027 | m_host.AddScriptLPS(1); | 7054 | m_host.AddScriptLPS(1); |