aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorCharles Krinke2008-09-10 02:25:02 +0000
committerCharles Krinke2008-09-10 02:25:02 +0000
commit291aa9fa10d28300105b097be1fef4572785f6f0 (patch)
tree5bcb18116599ff573a0c8fa5d94e57bb8b597fe8
parent*Almost* have a complete implementation of llDetectedGroup. (diff)
downloadopensim-SC_OLD-291aa9fa10d28300105b097be1fef4572785f6f0.zip
opensim-SC_OLD-291aa9fa10d28300105b097be1fef4572785f6f0.tar.gz
opensim-SC_OLD-291aa9fa10d28300105b097be1fef4572785f6f0.tar.bz2
opensim-SC_OLD-291aa9fa10d28300105b097be1fef4572785f6f0.tar.xz
Implementation of llDetectedGroup for DotNetEngine.
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs8
1 files changed, 3 insertions, 5 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index 6a9b8b7..9f13a10 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -932,15 +932,13 @@ namespace OpenSim.Region.ScriptEngine.Common
932 } 932 }
933 933
934 public LSL_Types.LSLInteger llDetectedGroup(int number) 934 public LSL_Types.LSLInteger llDetectedGroup(int number)
935 { 935 { //CFK: I *think* this is right, but am not sure.
936 m_host.AddScriptLPS(1); 936 m_host.AddScriptLPS(1);
937 EntityBase SensedObject = entityDetectedKey(number); 937 EntityBase SensedObject = entityDetectedKey(number);
938 if (SensedObject == null) 938 if (SensedObject == null)
939 return new LSL_Types.LSLInteger(0); 939 return new LSL_Types.LSLInteger(0);
940//I almost get this, but not quite. So comment out the problemm line until I 940 if (m_host.GroupID == m_host.ParentGroup.RootPart.GroupID) ;
941//figure it out 941 return new LSL_Types.LSLInteger(1);
942// if (m_host.GroupID == SensedObject.)
943// return new LSL_Types.LSLInteger(1);
944 return new LSL_Types.LSLInteger(0); 942 return new LSL_Types.LSLInteger(0);
945 } 943 }
946 944