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
Texture Listening_Texturer  

Listening_Texturer

This script, when placed into an object, will listen for "text *", where * is the key of the texture to use.
It can get annoying if you place it into a lot of prims, so don't use it a lot.

Category: Texture
By : Virus Collector
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for Listening_Texturer
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Listening_Texturer_1.lsl
1 //Listening Texturer script by Aldar Rayner
2 default
3 {
5 {
6 //Listen to my owner.
7 llListen(0,"",llGetOwner(),"");
8 }
9
10 listen(integer chan, string name, key id, string msg)
11 {
12 //Figure out what the key is and use it.
13 list parsed = llParseString2List(msg,[" "],[]);
14 string text = llList2String(parsed,0);
15 string texture = llList2String(parsed,1);
16 //Edit the word text in quotes to change the trigger keyword.
17 if(text == "text")
18 {
19 llSetPrimitiveParams([PRIM_TEXTURE,ALL_SIDES,(key)texture,<1,1,0>,<0,0,0>,0.0]);
20 }
21 }
22 }

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