Difference between revisions of "LlSensorRemove"

From Second Life Wiki
Jump to: navigation, search
m
Line 69: Line 69:
 
|notes
 
|notes
 
|cat1=Sensor
 
|cat1=Sensor
 +
|haiku={{Haiku|Call off the hounds.|The quarry has escaped us.|Back to the stables.}}
 
|cat2
 
|cat2
 
|cat3
 
|cat3
 
|cat4
 
|cat4
 
}}
 
}}

Revision as of 10:47, 4 April 2014

Summary

Function: llSensorRemove( );

Removes the sensor setup by llSensorRepeat.

There are no parameters or return value for this function, as only one llSensorRepeat can be specified per script.

Caveats

  • If called within the sensor event then it also removes all of the sensor data that is accessed by the detection functions.
All Issues ~ Search JIRA for related Bugs

Examples

The following basic example shows an object that when touched starts scanning for avatars in 10m every 30 seconds, and stops as soon as at least one is found, and returns their name. <lsl>default {

   touch_start(integer x) {
       llSensorRepeat("", NULL_KEY, AGENT, 10.0, PI, 30.0);
   }
   sensor(integer x) {
       key id = llDetectedKey(0);
       string name = llGetDisplayName(id);
if (("" == name)

See Also

Events

•  sensor

Functions

•  llSensorRepeat Scans for agents or objects every time period

Deep Notes

Search JIRA for related Issues

Signature

function void llSensorRemove();

Haiku

Call off the hounds.
The quarry has escaped us.
Back to the stables.