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

[Table if Contents/Site Map]

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
Sign SignChanger  

SignChanger

Timer-based Sign

Category: Sign
By : Ferd Frederix
Created: 2017-11-19 Edited: 2017-11-19
Worlds: Second Life

the Zip file

Download all files for SignChanger
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Script.lsl

This script by Ferd Frederix may be used in any manner, modified, and republished.  Unless specified otherwise, my scripts are always free and open source.  Objects made with these scripts may be sold with no restrictions.  All I ask is that you point others to this location should they ask you about it and to not sell this script, unless it is for $0 L. Please help improve my work by reporting bugs and improvements.

1 integer count ;
2 integer current = 0;
3
4 SetLinkTextureFast( string texture, integer face)
5 {
6 llSetLinkPrimitiveParamsFast(LINK_ROOT, [PRIM_TEXTURE, face, texture,<1,1,0>,<0,0,0>,0
7 ]);
8 }
9
10 // PRIM_TEXTURE, integer face, string texture, vector repeats, vector offsets, float rotation_in_radians
11
12 default
13 {
15 {
18 }
19
20 on_rez(integer p) {
22 }
23 timer() {
24
25 string texturename = llGetInventoryName(INVENTORY_TEXTURE,current);
26 SetLinkTextureFast(texturename,1); // do side one
27 current++;
28 if(current >= count)
29 current = 0;
30 texturename = llGetInventoryName(INVENTORY_TEXTURE,current);
31 SetLinkTextureFast(texturename,2); // do side two to cache it
32
33 }
34
35 // if necessary, uncomment this, then touch a face to get the number for use with SetLinkTexture
36 // touch_start(integer n) {
37 // integer face = llDetectedTouchFace(0);
38 // llSay(0,(string) face);
39 //}
40
41 }

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