<?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=LlDetectedPos</id>
	<title>LlDetectedPos - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.osgrid.org/index.php?action=history&amp;feed=atom&amp;title=LlDetectedPos"/>
	<link rel="alternate" type="text/html" href="http://wiki.osgrid.org/index.php?title=LlDetectedPos&amp;action=history"/>
	<updated>2026-10-25T11:50:58Z</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=LlDetectedPos&amp;diff=92&amp;oldid=prev</id>
		<title>Osgridadmin: Created page with &quot;==Function: vector llDetectedPos( integer number );== Returns a vector that is the position of detected object number. &lt;br&gt; • integer 	number 	– 	Index of detection inform...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.osgrid.org/index.php?title=LlDetectedPos&amp;diff=92&amp;oldid=prev"/>
		<updated>2017-12-30T17:48:13Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Function: vector llDetectedPos( integer number );== Returns a vector that is the position of detected object number. &amp;lt;br&amp;gt; • integer 	number 	– 	Index of detection inform...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Function: vector llDetectedPos( integer number );==&lt;br /&gt;
Returns a vector that is the position of detected object number. &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 &amp;lt;0.0, 0.0, 0.0&amp;gt; if number is not valid sensed object. &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;
//--// get sim position of Avatars in &amp;quot;say&amp;quot; range //--//&lt;br /&gt;
//-- @@ = Contains code optimizations, see the following page for details&lt;br /&gt;
//-- https://wiki.secondlife.com/wiki/User:Void_Singer/Optimizations&lt;br /&gt;
 &lt;br /&gt;
default&lt;br /&gt;
{&lt;br /&gt;
  state_entry()&lt;br /&gt;
  {&lt;br /&gt;
    llOwnerSay( &amp;quot;Touch me to get the positions of avatars in &amp;#039;Say&amp;#039; range&amp;quot; );&lt;br /&gt;
  }&lt;br /&gt;
 &lt;br /&gt;
  touch_start( integer vIntTouchCount )&lt;br /&gt;
  {&lt;br /&gt;
     //-- trigger the sensor for avatars within 20m&lt;br /&gt;
    llSensor( &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, AGENT, 20, PI );&lt;br /&gt;
  }&lt;br /&gt;
 &lt;br /&gt;
  sensor( integer vIntFound )&lt;br /&gt;
  {&lt;br /&gt;
    integer vIntCounter = 0;&lt;br /&gt;
     //-- loop through all avatars found&lt;br /&gt;
    do&lt;br /&gt;
    {&lt;br /&gt;
      llOwnerSay( llDetectedName( vIntCounter )&lt;br /&gt;
                  + &amp;quot; @ &amp;quot;&lt;br /&gt;
                   //-- the next line gets the position of each found avatar&lt;br /&gt;
                  + (string)llDetectedPos( vIntCounter ) );&lt;br /&gt;
    }while (++vIntCounter &amp;lt; vIntFound); //-- @@&lt;br /&gt;
  }&lt;br /&gt;
 &lt;br /&gt;
   //-- sensor does not detect owner if it&amp;#039;s attached&lt;br /&gt;
  no_sensor()&lt;br /&gt;
  {&lt;br /&gt;
    llOwnerSay( &amp;quot;I couldn&amp;#039;t find anybody&amp;quot; );&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>