diff options
author | Melanie | 2011-10-11 23:08:38 +0100 |
---|---|---|
committer | Melanie | 2011-10-11 23:08:38 +0100 |
commit | 61a8e35b7de6630d52c8146660cefa0610f04c9b (patch) | |
tree | 9e1f5eaafce6bf72ef3258e89a9aca0d353acfc3 | |
parent | Merge commit 'a3531dec1aaafdcd22a70764cc512dd5666c75fc' into bigmerge (diff) | |
parent | llAvatarOnLinkSitTarget Implementation (diff) | |
download | opensim-SC_OLD-61a8e35b7de6630d52c8146660cefa0610f04c9b.zip opensim-SC_OLD-61a8e35b7de6630d52c8146660cefa0610f04c9b.tar.gz opensim-SC_OLD-61a8e35b7de6630d52c8146660cefa0610f04c9b.tar.bz2 opensim-SC_OLD-61a8e35b7de6630d52c8146660cefa0610f04c9b.tar.xz |
Merge commit '528fcede6c31c056c3863fd19528558fcbaf475f' into bigmerge
3 files changed, 20 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 4f21c67..1b82ad1 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -6756,6 +6756,20 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
6756 | return m_host.GetAvatarOnSitTarget().ToString(); | 6756 | return m_host.GetAvatarOnSitTarget().ToString(); |
6757 | } | 6757 | } |
6758 | 6758 | ||
6759 | // http://wiki.secondlife.com/wiki/LlAvatarOnLinkSitTarget | ||
6760 | public LSL_String llAvatarOnLinkSitTarget(int linknum) | ||
6761 | { | ||
6762 | m_host.AddScriptLPS(1); | ||
6763 | if(linknum == ScriptBaseClass.LINK_SET || | ||
6764 | linknum == ScriptBaseClass.LINK_ALL_CHILDREN || | ||
6765 | linknum == ScriptBaseClass.LINK_ALL_OTHERS) return UUID.Zero.ToString(); | ||
6766 | |||
6767 | List<SceneObjectPart> parts = GetLinkParts(linknum); | ||
6768 | if (parts.Count == 0) return UUID.Zero.ToString(); | ||
6769 | return parts[0].SitTargetAvatar.ToString(); | ||
6770 | } | ||
6771 | |||
6772 | |||
6759 | public void llAddToLandPassList(string avatar, double hours) | 6773 | public void llAddToLandPassList(string avatar, double hours) |
6760 | { | 6774 | { |
6761 | m_host.AddScriptLPS(1); | 6775 | m_host.AddScriptLPS(1); |
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs index 7c388fe..4ad4123 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs | |||
@@ -54,6 +54,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces | |||
54 | LSL_Float llAtan2(double x, double y); | 54 | LSL_Float llAtan2(double x, double y); |
55 | void llAttachToAvatar(int attachment); | 55 | void llAttachToAvatar(int attachment); |
56 | LSL_Key llAvatarOnSitTarget(); | 56 | LSL_Key llAvatarOnSitTarget(); |
57 | LSL_Key llAvatarOnLinkSitTarget(int linknum); | ||
57 | LSL_Rotation llAxes2Rot(LSL_Vector fwd, LSL_Vector left, LSL_Vector up); | 58 | LSL_Rotation llAxes2Rot(LSL_Vector fwd, LSL_Vector left, LSL_Vector up); |
58 | LSL_Rotation llAxisAngle2Rot(LSL_Vector axis, double angle); | 59 | LSL_Rotation llAxisAngle2Rot(LSL_Vector axis, double angle); |
59 | LSL_Integer llBase64ToInteger(string str); | 60 | LSL_Integer llBase64ToInteger(string str); |
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs index ca54862..a88a1f4 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs | |||
@@ -130,6 +130,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
130 | return m_LSL_Functions.llAvatarOnSitTarget(); | 130 | return m_LSL_Functions.llAvatarOnSitTarget(); |
131 | } | 131 | } |
132 | 132 | ||
133 | public LSL_Key llAvatarOnLinkSitTarget(int linknum) | ||
134 | { | ||
135 | return m_LSL_Functions.llAvatarOnLinkSitTarget(linknum); | ||
136 | } | ||
137 | |||
133 | public LSL_Rotation llAxes2Rot(LSL_Vector fwd, LSL_Vector left, LSL_Vector up) | 138 | public LSL_Rotation llAxes2Rot(LSL_Vector fwd, LSL_Vector left, LSL_Vector up) |
134 | { | 139 | { |
135 | return m_LSL_Functions.llAxes2Rot(fwd, left, up); | 140 | return m_LSL_Functions.llAxes2Rot(fwd, left, up); |