diff options
author | meta7 | 2010-08-21 07:22:41 -0700 |
---|---|---|
committer | meta7 | 2010-08-21 07:22:41 -0700 |
commit | 3ffdadef7014334666d0d42ff8bd9bd83b3c6505 (patch) | |
tree | ef43d27f57496292a8cf31e7464765f9bfafe514 /OpenSim/Region/ScriptEngine/Shared/Api | |
parent | Removed the NotImplementedException from llSetSoundQueueing, because the func... (diff) | |
download | opensim-SC-3ffdadef7014334666d0d42ff8bd9bd83b3c6505.zip opensim-SC-3ffdadef7014334666d0d42ff8bd9bd83b3c6505.tar.gz opensim-SC-3ffdadef7014334666d0d42ff8bd9bd83b3c6505.tar.bz2 opensim-SC-3ffdadef7014334666d0d42ff8bd9bd83b3c6505.tar.xz |
Add support for attached avatars in llGetLinkKey()
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 11 |
1 files changed, 11 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 37f2433..9615d08 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -3985,6 +3985,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
3985 | } | 3985 | } |
3986 | else | 3986 | else |
3987 | { | 3987 | { |
3988 | if (linknum > m_host.ParentGroup.PrimCount || (linknum == 1 && m_host.ParentGroup.PrimCount == 1)) | ||
3989 | { | ||
3990 | linknum -= (m_host.ParentGroup.PrimCount) + 1; | ||
3991 | if (linknum > 0) linknum--; //for linksets | ||
3992 | |||
3993 | List<ScenePresence> avatars = GetLinkAvatars(ScriptBaseClass.LINK_SET); | ||
3994 | if (avatars.Count > linknum) | ||
3995 | { | ||
3996 | return avatars[linknum].UUID.ToString(); | ||
3997 | } | ||
3998 | } | ||
3988 | return UUID.Zero.ToString(); | 3999 | return UUID.Zero.ToString(); |
3989 | } | 4000 | } |
3990 | } | 4001 | } |