<?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=LlDetectedType</id>
	<title>LlDetectedType - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.osgrid.org/index.php?action=history&amp;feed=atom&amp;title=LlDetectedType"/>
	<link rel="alternate" type="text/html" href="http://wiki.osgrid.org/index.php?title=LlDetectedType&amp;action=history"/>
	<updated>2026-10-25T11:12:03Z</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=LlDetectedType&amp;diff=100&amp;oldid=prev</id>
		<title>Osgridadmin: Created page with &quot;==Function: integer llDetectedType( integer number );== Returns an integer mask that is the types of detected object or avatar. &lt;br&gt; • integer 	number 	– 	Index of detecti...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.osgrid.org/index.php?title=LlDetectedType&amp;diff=100&amp;oldid=prev"/>
		<updated>2017-12-30T17:59:34Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Function: integer llDetectedType( integer number );== Returns an integer mask that is the types of detected object or avatar. &amp;lt;br&amp;gt; • integer 	number 	– 	Index of detecti...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Function: integer llDetectedType( integer number );==&lt;br /&gt;
Returns an integer mask that is the types of detected object or avatar. &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 zero if number is not valid sensed object or avatar. &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;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;.5&amp;quot; style=&amp;quot;text-align:left&amp;quot;&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; bgcolor=&amp;quot;black&amp;quot; | &amp;lt;span style=&amp;quot;color:#CC6633&amp;quot;&amp;gt;Flag  !! align=&amp;quot;center&amp;quot; bgcolor=&amp;quot;black&amp;quot; | &amp;lt;span style=&amp;quot;color:#CC6633&amp;quot;&amp;gt;Description&lt;br /&gt;
|-&lt;br /&gt;
| AGENT || 0x1 || This is used to find agents only. &lt;br /&gt;
|-&lt;br /&gt;
| ACTIVE || 0x2 || This is used to find physical objects that are moving or objects containing an active script. &lt;br /&gt;
|-&lt;br /&gt;
| valign=&amp;quot;top&amp;quot; | PASSIVE || valign=&amp;quot;top&amp;quot; | 0x4 || This is used to find physical objects that are not moving or non-physical objects containing an inactive script or a non-scripted object. &lt;br /&gt;
|-&lt;br /&gt;
| SCRIPTED || 0x8 || This is used to find objects containing an active script. &lt;br /&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;
//--// Type &amp;amp; name of collision source //--//&lt;br /&gt;
 &lt;br /&gt;
default{&lt;br /&gt;
  collision_start( integer vIntCollided ){&lt;br /&gt;
    integer vBitType;&lt;br /&gt;
    string vStrType;&lt;br /&gt;
    do{&lt;br /&gt;
      vBitType = llDetectedType( --vIntCollided );&lt;br /&gt;
      if (1 &amp;amp; vBitType){&lt;br /&gt;
        vStrType = &amp;quot;Avatar&amp;quot;;&lt;br /&gt;
      }else{&lt;br /&gt;
        vStrType = &amp;quot;object&amp;quot;;&lt;br /&gt;
      }&lt;br /&gt;
      llOwnerSay( &amp;quot;An &amp;quot; + vStrType + &amp;quot;named &amp;#039;&amp;quot; + llDetectedName( vIntCollided ) + &amp;quot;&amp;#039; collided with me&amp;quot; );&lt;br /&gt;
    }while (vIntCollided);&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Osgridadmin</name></author>
	</entry>
</feed>