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
Animation SleeponIdle  

SleeponIdle

Sleep-on-Idle.lsl

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

the Zip file

Download all files for SleeponIdle
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. SleeponIdle_1.lsl
1
2 integer idle = FALSE;
3
4 default
5 {
7 {
8 llSensorRepeat("","",AGENT,20,PI,30);
9 }
10
11 sensor(integer num_detected){
12 if(idle){
13 llSetScriptState("Collision Avoidance",TRUE);
14 llSetScriptState("Random Movement",TRUE);
15 llSetScriptState("Collision Avoidance",TRUE);
17 idle = FALSE;
18 }
19 }
20
21 no_sensor(){
22 idle = TRUE;
23 llSetScriptState("Collision Avoidance",FALSE);
24 llSetScriptState("Random Movement",FALSE);
25 llSetScriptState("Collision Avoidance",FALSE);
28 }
29 }
30 // END //

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