Difference between revisions of "No sensor"

From Second Life Wiki
Jump to navigation Jump to search
m (LSL no sensor moved to No sensor: removing prefix)
(Added Example)
Line 1: Line 1:
{{LSL_Event|event_id=14|event_delay|event=no_sensor|event_desc=Result of the {{LSLG|llSensor}} library function call|constants|spec|caveats|examples|helpers
{{LSL_Event|event_id=14|event_delay|event=no_sensor|event_desc=Result of the {{LSLG|llSensor}} library function call|constants|spec|caveats|examples|
<pre>
<pre>
//List all avatars in range.
default {
    on_rez(integer i) {
          llSensor("", "", AGENT, 100000, 10000);
    }
    sensor(integer num) {
          integer i = 0;
          while (i < num) {
              llOwnerSay(llDetectedName(i) + " is " + (string)llVecDist(llGetPos(), llDetectedPos(i)) + "m away.");
              i++;
          }
    }
    no_sensor() {
          llOwnerSay("No avatars in range.");
    }
}
</pre>
 
helpers
|also_header|also_events|also_functions=*{{LSLG|llSensor}}
|also_header|also_events|also_functions=*{{LSLG|llSensor}}
*{{LSLG|llSensorRepeat}}|also_articles|also_footer
*{{LSLG|llSensorRepeat}}|also_articles|also_footer

Revision as of 15:12, 12 October 2007