aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common
diff options
context:
space:
mode:
authorCharles Krinke2008-06-13 01:54:53 +0000
committerCharles Krinke2008-06-13 01:54:53 +0000
commit3b4c2c1ff1bfb8bf7b6a53c54cc9d6036d4ed9eb (patch)
tree8744ce8d26c4322fc42e4a1bdeb37a44889ec204 /OpenSim/Region/ScriptEngine/Common
parentUpdate svn properties, clean up formatting, refactor out duplicate hard-coded... (diff)
downloadopensim-SC_OLD-3b4c2c1ff1bfb8bf7b6a53c54cc9d6036d4ed9eb.zip
opensim-SC_OLD-3b4c2c1ff1bfb8bf7b6a53c54cc9d6036d4ed9eb.tar.gz
opensim-SC_OLD-3b4c2c1ff1bfb8bf7b6a53c54cc9d6036d4ed9eb.tar.bz2
opensim-SC_OLD-3b4c2c1ff1bfb8bf7b6a53c54cc9d6036d4ed9eb.tar.xz
A little minor cleanup and harmonizing between LSL_BuiltIn_Commands.cs
and its copy LSL_ScriptCommands.cs
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs20
1 files changed, 9 insertions, 11 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index 688354c..e2909ff 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -753,14 +753,20 @@ namespace OpenSim.Region.ScriptEngine.Common
753 return new LSL_Types.Vector3(0, 0, 0); 753 return new LSL_Types.Vector3(0, 0, 0);
754 754
755 return new LSL_Types.Vector3(SensedObject.Velocity.X, SensedObject.Velocity.Y, SensedObject.Velocity.Z); 755 return new LSL_Types.Vector3(SensedObject.Velocity.X, SensedObject.Velocity.Y, SensedObject.Velocity.Z);
756 // return new LSL_Types.Vector3();
757 } 756 }
758 757
759 public LSL_Types.Vector3 llDetectedGrab(int number) 758 public LSL_Types.Vector3 llDetectedGrab(int number)
760 { 759 {
761 m_host.AddScriptLPS(1); 760 m_host.AddScriptLPS(1);
762 NotImplemented("llDetectedGrab"); 761 EntityBase SensedObject = entityDetectedKey(number);
763 return new LSL_Types.Vector3(); 762 if (SensedObject == null)
763 return new LSL_Types.Vector3(0, 0, 0);
764
765 return new LSL_Types.Vector3(
766 SensedObject.AbsolutePosition.X,
767 SensedObject.AbsolutePosition.Y,
768 SensedObject.AbsolutePosition.Y );
769
764 } 770 }
765 771
766 public LSL_Types.Quaternion llDetectedRot(int number) 772 public LSL_Types.Quaternion llDetectedRot(int number)
@@ -3036,7 +3042,6 @@ namespace OpenSim.Region.ScriptEngine.Common
3036 z = axis.z * t; 3042 z = axis.z * t;
3037 3043
3038 return new LSL_Types.Quaternion(x,y,z,s); 3044 return new LSL_Types.Quaternion(x,y,z,s);
3039 // NotImplemented("llAxisAngle2Rot");
3040 } 3045 }
3041 3046
3042 3047
@@ -3123,7 +3128,6 @@ namespace OpenSim.Region.ScriptEngine.Common
3123 m_host.AddScriptLPS(1); 3128 m_host.AddScriptLPS(1);
3124 3129
3125 return (double) Math.Acos(a.x * b.x + a.y * b.y + a.z * b.z + a.s * b.s) * 2; 3130 return (double) Math.Acos(a.x * b.x + a.y * b.y + a.z * b.z + a.s * b.s) * 2;
3126// NotImplemented("llAngleBetween");
3127 } 3131 }
3128 3132
3129 public string llGetInventoryKey(string name) 3133 public string llGetInventoryKey(string name)
@@ -4400,12 +4404,6 @@ namespace OpenSim.Region.ScriptEngine.Common
4400 { 4404 {
4401 m_host.AddScriptLPS(1); 4405 m_host.AddScriptLPS(1);
4402 return m_host.GetAvatarOnSitTarget().ToString(); 4406 return m_host.GetAvatarOnSitTarget().ToString();
4403 //LLUUID AVID = m_host.GetAvatarOnSitTarget();
4404
4405 //if (AVID != LLUUID.Zero)
4406 // return AVID.ToString();
4407 //else
4408 // return String.Empty;
4409 } 4407 }
4410 4408
4411 public void llAddToLandPassList(string avatar, double hours) 4409 public void llAddToLandPassList(string avatar, double hours)