From 291aa9fa10d28300105b097be1fef4572785f6f0 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Wed, 10 Sep 2008 02:25:02 +0000 Subject: [PATCH] Implementation of llDetectedGroup for DotNetEngine. --- .../Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 8 +++----- 1 file 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 6a9b8b7805..9f13a10bcc 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 } public LSL_Types.LSLInteger llDetectedGroup(int number) - { + { //CFK: I *think* this is right, but am not sure. m_host.AddScriptLPS(1); 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); + if (m_host.GroupID == m_host.ParentGroup.RootPart.GroupID) ; + return new LSL_Types.LSLInteger(1); return new LSL_Types.LSLInteger(0); }