<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.secondlife.com/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ineed+Moore</id>
	<title>Second Life Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.secondlife.com/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ineed+Moore"/>
	<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/wiki/Special:Contributions/Ineed_Moore"/>
	<updated>2026-07-28T06:48:23Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://wiki.secondlife.com/w/index.php?title=Sensor&amp;diff=698883</id>
		<title>Sensor</title>
		<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/w/index.php?title=Sensor&amp;diff=698883"/>
		<updated>2010-01-07T03:39:05Z</updated>

		<summary type="html">&lt;p&gt;Ineed Moore: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{LSL_Event&lt;br /&gt;
|event_id=13|event_delay|event=sensor&lt;br /&gt;
|p1_type=integer|p1_name=num_detected|p1_desc=number of objects/avatars found&lt;br /&gt;
|event_desc=Results from a call to either [[llSensor]] or [[llSensorRepeat]].&lt;br /&gt;
|event_footnote=The results are ordered from nearest to furthest.&lt;br /&gt;
&amp;lt;br/&amp;gt;&#039;&#039;&#039;num_detected&#039;&#039;&#039; is always greater than zero, the [[no_sensor]] event is triggered if no objects/avatars were found.&lt;br /&gt;
|constants&lt;br /&gt;
|spec&lt;br /&gt;
|caveats=*[[Linden]]s in [[God Mode|administrative mode]] cannot be sensed by sensors in the same region as the Linden.&lt;br /&gt;
*Sensors placed in attachments will use the direction the avatar is facing as their forward vector. In mouselook, this means that it will be wherever the avatar is looking, while out of mouselook, this means whichever way the avatar is pointing. This does not include where the avatar&#039;s head is pointing, or what animation the avatar is doing, just the direction the avatar would move in if you walked forward. This is the case, regardless of where the object is attached. &lt;br /&gt;
*A sensor running in an attachment will not detect the avatar wearing it.&lt;br /&gt;
*A sensor will only return the first 16 objects/avatars found.&lt;br /&gt;
|examples=&lt;br /&gt;
&amp;lt;lsl&amp;gt;float range = 10.0; //  meters&lt;br /&gt;
 &lt;br /&gt;
default&lt;br /&gt;
{&lt;br /&gt;
    touch_start(integer numberDetected)&lt;br /&gt;
    {&lt;br /&gt;
         llSensor(&amp;quot;&amp;quot;, &amp;quot;&amp;quot;, AGENT, range, PI); // activates the sensor.&lt;br /&gt;
         // look for avatars (i.e. not moving objects) on all sides of the object&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    sensor (integer numberDetected)&lt;br /&gt;
    {&lt;br /&gt;
        string msg = &amp;quot;Detected &amp;quot; + (string)numberDetected + &amp;quot; avatar(s): &amp;quot; + llDetectedName(0);&lt;br /&gt;
        integer i = 0;&lt;br /&gt;
        while(numberDetected &amp;gt; ++i)//skips the first item which suits this application&lt;br /&gt;
        {&lt;br /&gt;
            msg += &amp;quot;, &amp;quot; + llDetectedName(i);&lt;br /&gt;
        }&lt;br /&gt;
        llWhisper(0, msg);&lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
    no_sensor()&lt;br /&gt;
    {&lt;br /&gt;
        llWhisper(0, &amp;quot;Nobody is near me at present.&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
}&amp;lt;/lsl&amp;gt;&lt;br /&gt;
|helpers&lt;br /&gt;
|also_header&lt;br /&gt;
|also_events&lt;br /&gt;
|also_functions={{LSL DefineRow||[[llSensor]]|}}&lt;br /&gt;
{{LSL DefineRow||[[llSensorRepeat]]|}}&lt;br /&gt;
|also_articles={{LSL DefineRow||{{LSLGC|Detected}}|}}&lt;br /&gt;
|also_footer&lt;br /&gt;
|notes&lt;br /&gt;
|mode&lt;br /&gt;
|deprecated&lt;br /&gt;
|cat1=Sensor&lt;br /&gt;
|cat2=Detected&lt;br /&gt;
|cat3&lt;br /&gt;
|cat4&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Ineed Moore</name></author>
	</entry>
</feed>