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
Light listener  

listener

listener.lsl

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

the Zip file

Download all files for listener
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. listener_1.lsl
1
2 float MAX_RADIUS = 2.5 ;// default
3
4 integer channel = 99;
5
6 default
7 {
9 {
10 llOwnerSay("Change radius with /" + (string) channel + " number, like '/" + (string) channel + " 5.0' for 5 meter radius");
11 llListen(channel, "", llGetOwner(), "");
12
13 }
14 listen( integer channel, string name, key id, string message )
15 {
16 float diameter = 2 * (float) message;
17 MAX_RADIUS = (float) message;
18 llOwnerSay("Radius is set to " + (string) MAX_RADIUS + ", Diameter is set to " + (string) diameter);
19 }
20
21 }
22 // END //

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