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.
llSensorRemove();Caveats
Section titled “Caveats”- If called within the
sensorevent then it also removes all of the sensor data that is accessed by the detection functions.
Examples
Section titled “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.
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(); }}See also
Section titled “See also”Functions
Section titled “Functions”llSensorRepeat— Scans for agents or objects every time periodllSensor— Runs a sensor once
Events
Section titled “Events”sensor— Triggered when a sensor detects somethingno_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.