aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorCharles Krinke2008-09-10 02:10:25 +0000
committerCharles Krinke2008-09-10 02:10:25 +0000
commit796fedb1e912c688b61ff21aa0e6fc19f25ded18 (patch)
tree00e4bca8b41bce5351c3e14a86e92044daa790f4
parentImplementation for llDetectedLinkNumber in DotNetEngine. (diff)
downloadopensim-SC-796fedb1e912c688b61ff21aa0e6fc19f25ded18.zip
opensim-SC-796fedb1e912c688b61ff21aa0e6fc19f25ded18.tar.gz
opensim-SC-796fedb1e912c688b61ff21aa0e6fc19f25ded18.tar.bz2
opensim-SC-796fedb1e912c688b61ff21aa0e6fc19f25ded18.tar.xz
*Almost* have a complete implementation of llDetectedGroup.
One member missing, so a portion is commented out.
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index 6449edf..6a9b8b7 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -934,8 +934,14 @@ namespace OpenSim.Region.ScriptEngine.Common
934 public LSL_Types.LSLInteger llDetectedGroup(int number) 934 public LSL_Types.LSLInteger llDetectedGroup(int number)
935 { 935 {
936 m_host.AddScriptLPS(1); 936 m_host.AddScriptLPS(1);
937 NotImplemented("llDetectedGroup"); 937 EntityBase SensedObject = entityDetectedKey(number);
938 return 0; 938 if (SensedObject == null)
939 return new LSL_Types.LSLInteger(0);
940//I almost get this, but not quite. So comment out the problemm line until I
941//figure it out
942// if (m_host.GroupID == SensedObject.)
943// return new LSL_Types.LSLInteger(1);
944 return new LSL_Types.LSLInteger(0);
939 } 945 }
940 946
941 public LSL_Types.LSLInteger llDetectedLinkNumber(int number) 947 public LSL_Types.LSLInteger llDetectedLinkNumber(int number)