Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Need Some More Guidance

Ozark Mayo
Registered User
Join date: 3 Jun 2008
Posts: 18
10-27-2009 13:09
I have in mind what I want to do.

I know how to script some of it, but not quite all of it.

I need a listen event to listen for a command from a HUD to change the texture of an object (I know how to do this). But here is where I need some help, I want the object to change to a different texture after a certian amount of time has elapsed.

Any help would be grealty appreciated.

--O
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
10-27-2009 13:19
CODE

listen(integer channel, string name, key id, string msg)
{
llSetTexture("Texture 1", ALL_SIDES); //Set to Texture 1 now
llSetTimerEvent(20); // And then, in 20 seconds ......
}

timer()
{
llSetTexture("Texture 2", ALL_SIDES); // .... set to Texture 2.
llSetTimerEvent(0); //Oh yes, and shut off the timer. ;-)
}
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask.... ;)

Look for my work in XStreetSL at
Ozark Mayo
Registered User
Join date: 3 Jun 2008
Posts: 18
10-27-2009 20:00
Thank you!

I added a few lines to get it to do what I wanted.

I will give you some credit when I finalize my building project.

-O