Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- integer iiMax;//how many materials in the inventory. updates in getSlides below
- integer index;
- getSlides()
- {
- integer iiMax = llGetInventoryNumber(INVENTORY_MATERIAL);
- }
- newSlide()
- {
- index++;
- if (index >= iiMax)index = 0;
- string material = llGetInventoryName(INVENTORY_MATERIAL,index);
- llSetRenderMaterial(material, 1);
- }
- default
- {
- state_entry()
- {
- getSlides();
- llSetTimerEvent(15);
- index = 0;
- newSlide();
- }
- /* touch_start(integer num)
- {
- index = 0;
- newSlide();
- llSay(0,"Starting slide show over");
- }*/
- timer()
- {
- newSlide();
- }
- changed(integer change)
- {
- if(change & CHANGED_INVENTORY)
- {
- getslides();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement