Implementation of llDetectedGroup for DotNetEngine.
parent
796fedb1e9
commit
291aa9fa10
|
@ -932,15 +932,13 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||||
}
|
}
|
||||||
|
|
||||||
public LSL_Types.LSLInteger llDetectedGroup(int number)
|
public LSL_Types.LSLInteger llDetectedGroup(int number)
|
||||||
{
|
{ //CFK: I *think* this is right, but am not sure.
|
||||||
m_host.AddScriptLPS(1);
|
m_host.AddScriptLPS(1);
|
||||||
EntityBase SensedObject = entityDetectedKey(number);
|
EntityBase SensedObject = entityDetectedKey(number);
|
||||||
if (SensedObject == null)
|
if (SensedObject == null)
|
||||||
return new LSL_Types.LSLInteger(0);
|
return new LSL_Types.LSLInteger(0);
|
||||||
//I almost get this, but not quite. So comment out the problemm line until I
|
if (m_host.GroupID == m_host.ParentGroup.RootPart.GroupID) ;
|
||||||
//figure it out
|
return new LSL_Types.LSLInteger(1);
|
||||||
// if (m_host.GroupID == SensedObject.)
|
|
||||||
// return new LSL_Types.LSLInteger(1);
|
|
||||||
return new LSL_Types.LSLInteger(0);
|
return new LSL_Types.LSLInteger(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue