Skip to content
lsl.devlsl.devLSL Dev

llSensorRemove

function
Function syntax
llSensorRemove();
Energy
10

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.

How to use
llSensorRemove();
  • If called within the sensor event then it also removes all of the sensor data that is accessed by the detection functions.
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.
default {
touch_start(integer x) {
llSensorRepeat("", NULL_KEY, AGENT, 10.0, PI, 30.0);
}
sensor(integer x) {
llSay(0, llDetectedName(0) + " was found first!");
llSensorRemove();
}
}
  • sensor — Triggered when a sensor detects something
  • no_sensor — Triggered when a sensor detects nothing
Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.

From the Second Life Wiki

Community documentation adapted from LlSensorRemove, by Linden Research, Inc. and contributing residents.View contributors and history.

Imported wiki revision:

Licensed under CC BY-SA 3.0. Last wiki edit: .Formatting and links have been adapted for this site; API metadata follows the LSL definitions.