-->

FoxSan's 3D Tools and LSL Script Repository

Tons of LSL scripts, examples and 3D tools, free for all. There are currently 207 scripts and articles in this database.

llSensorRepeat

default
{
    state_entry()
    {
        llSetText("llSensorRepeat()\nTouch to trigger a sensor for 5 seconds",<1,1,1>,1);
    }
 
    touch_start(integer total_number)
    {
       llSensorRepeat("",NULL_KEY,AGENT,10,PI,1);
       llSetTimerEvent(5);
    }
 
    timer()
    {
     llSensorRemove();
    }
 
    sensor(integer num_detected)
    {
        integer i;
        for(i=0;i<num_detected;i++)
            llSay(0, llDetectedName(i)+" Loves llamas!");
    }
}

Comments are closed.