diff options
author | Pixel Tomsen | 2011-09-26 20:18:06 +0200 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-09-29 01:08:05 +0100 |
commit | 528fcede6c31c056c3863fd19528558fcbaf475f (patch) | |
tree | 6c9e7787f84df713df95df950c3d1e09d2402863 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation | |
parent | Add en_US culture setting to the async delete to inventory thread, to avoid a... (diff) | |
download | opensim-SC_OLD-528fcede6c31c056c3863fd19528558fcbaf475f.zip opensim-SC_OLD-528fcede6c31c056c3863fd19528558fcbaf475f.tar.gz opensim-SC_OLD-528fcede6c31c056c3863fd19528558fcbaf475f.tar.bz2 opensim-SC_OLD-528fcede6c31c056c3863fd19528558fcbaf475f.tar.xz |
llAvatarOnLinkSitTarget Implementation
http://wiki.secondlife.com/wiki/LlAvatarOnLinkSitTarget
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); |