diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 14 |
1 files changed, 14 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 070cdc0..39da563 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -6296,6 +6296,20 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
6296 | return m_host.GetAvatarOnSitTarget().ToString(); | 6296 | return m_host.GetAvatarOnSitTarget().ToString(); |
6297 | } | 6297 | } |
6298 | 6298 | ||
6299 | // http://wiki.secondlife.com/wiki/LlAvatarOnLinkSitTarget | ||
6300 | public LSL_String llAvatarOnLinkSitTarget(int linknum) | ||
6301 | { | ||
6302 | m_host.AddScriptLPS(1); | ||
6303 | if(linknum == ScriptBaseClass.LINK_SET || | ||
6304 | linknum == ScriptBaseClass.LINK_ALL_CHILDREN || | ||
6305 | linknum == ScriptBaseClass.LINK_ALL_OTHERS) return UUID.Zero.ToString(); | ||
6306 | |||
6307 | List<SceneObjectPart> parts = GetLinkParts(linknum); | ||
6308 | if (parts.Count == 0) return UUID.Zero.ToString(); | ||
6309 | return parts[0].SitTargetAvatar.ToString(); | ||
6310 | } | ||
6311 | |||
6312 | |||
6299 | public void llAddToLandPassList(string avatar, double hours) | 6313 | public void llAddToLandPassList(string avatar, double hours) |
6300 | { | 6314 | { |
6301 | m_host.AddScriptLPS(1); | 6315 | m_host.AddScriptLPS(1); |