<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.osgrid.org/index.php?action=history&amp;feed=atom&amp;title=LlDetectedGroup</id>
	<title>LlDetectedGroup - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.osgrid.org/index.php?action=history&amp;feed=atom&amp;title=LlDetectedGroup"/>
	<link rel="alternate" type="text/html" href="http://wiki.osgrid.org/index.php?title=LlDetectedGroup&amp;action=history"/>
	<updated>2026-10-25T11:12:16Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>http://wiki.osgrid.org/index.php?title=LlDetectedGroup&amp;diff=86&amp;oldid=prev</id>
		<title>Osgridadmin: /* Function: integer llDetectedGroup( integer number ); */</title>
		<link rel="alternate" type="text/html" href="http://wiki.osgrid.org/index.php?title=LlDetectedGroup&amp;diff=86&amp;oldid=prev"/>
		<updated>2017-12-30T16:38:51Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Function: integer llDetectedGroup( integer number );&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Function: integer llDetectedGroup( integer number );==&lt;br /&gt;
Returns an integer that is a boolean representing if the detected object or avatar is in the same group that the prim containing the script is set to. &amp;lt;br&amp;gt;&lt;br /&gt;
• integer 	number 	– 	Index of detection information 	&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
number does not support negative indexes.&amp;lt;br&amp;gt;&lt;br /&gt;
Returns FALSE if number is out of range or if the detected event does not support this attribute.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Specification&amp;#039;&amp;#039;&amp;#039; &amp;lt;br&amp;gt;&lt;br /&gt;
[[llDetected]]* functions can be called anywhere but will only return non-default values if called from within Detection events and functions called by Detection events. &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Caveats&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
• Events that enable the [[llDetected]]* functions always return at least one detected item.&amp;lt;br&amp;gt;&lt;br /&gt;
-• Detection events are not raised if there is nothing detected (with the slight exception of no_sensor but it doesn&amp;#039;t enable [[llDetected]]* functions).&amp;lt;br&amp;gt;&lt;br /&gt;
-• The event detection count parameter value is initially never less than 1. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Examples&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
{|border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|&amp;lt;source lang=&amp;quot;lsl&amp;quot;&amp;gt;&lt;br /&gt;
//Gives inventory only to agents with the same active group&lt;br /&gt;
default&lt;br /&gt;
{&lt;br /&gt;
    touch_start(integer total_number)&lt;br /&gt;
    {&lt;br /&gt;
        integer number = 0;&lt;br /&gt;
        do&lt;br /&gt;
        {&lt;br /&gt;
            if (llDetectedGroup(number)) //same as llSameGroup(llDetectedKey(0)) (with llSameGroup, detected must be in the sim)&lt;br /&gt;
                llGiveInventory(llDetectedKey(number), llGetInventoryName(INVENTORY_OBJECT,0));&lt;br /&gt;
            else&lt;br /&gt;
                llSay(0, &amp;quot;Wrong active group!&amp;quot;);&lt;br /&gt;
        }while(total_number &amp;gt; ++number);&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
See Also&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Functions&amp;#039;&amp;#039;&amp;#039; &amp;lt;br&amp;gt;&lt;br /&gt;
•  	[[llSameGroup]] 	&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Osgridadmin</name></author>
	</entry>
</feed>