From 796fedb1e912c688b61ff21aa0e6fc19f25ded18 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Wed, 10 Sep 2008 02:10:25 +0000 Subject: [PATCH] *Almost* have a complete implementation of llDetectedGroup. One member missing, so a portion is commented out. --- .../Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 10 ++++++++-- 1 file 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 6449edf186..6a9b8b7805 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 public LSL_Types.LSLInteger llDetectedGroup(int number) { m_host.AddScriptLPS(1); - NotImplemented("llDetectedGroup"); - return 0; + EntityBase SensedObject = entityDetectedKey(number); + if (SensedObject == null) + return new LSL_Types.LSLInteger(0); +//I almost get this, but not quite. So comment out the problemm line until I +//figure it out +// if (m_host.GroupID == SensedObject.) +// return new LSL_Types.LSLInteger(1); + return new LSL_Types.LSLInteger(0); } public LSL_Types.LSLInteger llDetectedLinkNumber(int number)