Join us in Outworldz at www.outworldz.com:9000 or follow us:

Search dozens of selected web sites for OpenSim and LSL script

New! Script Meta-Search will search thousands of scripts here and at other sites for LSL or Opensim scripts.
Loading

Want to add a script or a project? Upload it and a half million people will see it and your name here this year.

Home   Show All
Category: Contributor: Creator
Scanner detection_script  

detection_script

detection script.lsl

Category: Scanner
By : Anonymous
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for detection_script
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. detection_script_1.lsl
1
2 float ScannerRange = 2; //radius in m of scan area
3 float ScanFrequency = 15; //no of secs between scans
4 string VisitorIsAt="my home"; //location of scanner
5
6 default
7 {
9 {
10 llSensorRepeat("", "", AGENT, ScannerRange, PI, ScanFrequency); // regularly scan for people
11 }
12
13 sensor(integer number_detected)
14 {
15 integer i;
16 for(i = 0; i < number_detected; i++) // Create a loop to let us check each
17 {
18 if(llDetectedKey(i) != llGetOwner()) // Is this someone other than the owner?
19 {
20
21 llInstantMessage(llGetOwner(), llDetectedName(i) + " freeze right there! why are you snoping around next to " + VisitorIsAt); // send an IM to the owner.
22 }
23 }
24
25
26 }
27 }
28 // END //

Back to the Best Free Tools in Second Life and OpenSim.