Kristopher Tenk
Registered User
Join date: 11 Apr 2007
Posts: 153
|
05-19-2007 04:42
I am wanting to create a poster that every x amount of seconds the texture of the poster changes to another texture. Does anyone know a script that would do this?
Thanks
|
Meroth Junge
Registered User
Join date: 25 Apr 2007
Posts: 21
|
05-19-2007 10:36
Hree it goes. Mind you I have not tested it, writed directly here in the forum  Should work though. Donations accepted  integer max_nr; integer cur_nr; integer time = 30; //write here your time
init() { max_nr = llGetInventoryNumber(INVENTORY_TEXTURE); cur_nr = 0; llSetTimerEvent(time); }
default { state_entry() { init(); }
changed(integer change) { if (change & CHANGED_INVENTORY) init(); }
on_rez(integer param) { init(); }
timer() { cur_nr++; if (cur_nr == max_nr) cur_nr = 0; llSetTexture(llGetInventoryName(INVENTORY_TEXTURE, cur_nr), ALL_SIDES); //change ALL_SIDES to side nr. if you want } }
|
Kristopher Tenk
Registered User
Join date: 11 Apr 2007
Posts: 153
|
05-21-2007 01:59
Thank you will give this a try and check that it works. 
|