HOME PRODUCTS HELP FREEBIES SCRIPTS TUTORIALS NEWS CONTACT
  Teleport to Store in-world!    |    Links   |    Blog    
Main Menu
Alicia's Raffle
Top Free Scripts
Who's Online
4 user(s) are online (2 user(s) are browsing Free Scripts)

Members: 0
Guests: 4

more...
Admin Login
Username:

Password:


Lost Password?

Register now!
Sites of Interest
Published Date: 2006/10/13 0:20:15
Views : 21815
Texture

Drop up to 10 different textures into an object and this script. It will change to the next texture automatically.

It will change textures in the order that they appear in the object's contents, (alphabetical,) so rename them to choose the order.

Currently it will change the texture on all sides. For just one side change "ALL_SIDES" whenver it appears to the side number you want. llSetTexture(name, 1) for example.

integer number;
string name;
integer choice = 0;

default
{
    state_entry()
    {
        llSetTimerEvent(2.5); //How many seconds inbetween textures
        number = llGetInventoryNumber(INVENTORY_TEXTURE);
    }
    timer()
    {
        if (choice < number)
        {
            name = llGetInventoryName(INVENTORY_TEXTURE, choice);
            if (name != "")
            llSetTexture(name, ALL_SIDES);
            choice = choice + 1;
        }
        else
        {
            name = llGetInventoryName(INVENTORY_TEXTURE, choice);
            if (name != "")
            llSetTexture(name, ALL_SIDES);
            choice = 0;
        }
    }
    changed(integer change)
    {
        if (change & CHANGED_INVENTORY) 
        {
            llResetScript();
        }
    }
}

0
|  Links 
Printer Friendly Page Send this Script to a Friend
Now Available: ASD Visitor Tracker


Visit ASD Studios Hollywood
New Products

ASD Visitor Tracker

Advanced Visitor Counter
Stores your visitors to the web

ASD Group Info Board

First board in SL to show how
many Group members you have!

Alicia's Universe
Recent Scripts
Suggested Reading

© 2006- Alicia Stella | ASD Affiliate Programs | Policies | News | Help
Second Life® and the inSL logo are registered trademarks of Linden Research, Inc.
Alicia Stella Design is not affiliated with Second Life. No infringement is intended.